Hello,
I've just split off part of a shared header file into a new file, and I wanted to add this file to the repository and share it in the same manner as its parent.
Unfortunately, I couldn't find a way to do these within the same commit so I resorted to checking in the new file and the modifications to the old one, then quickly setting up the share and trying to check it in before the build server noticed the first commit*.
Is there a way to perform the add and share operations within the same commit?
Ta
*I realise that I could have reduced the race against time (and deliberately checking in a broken build) by checking in the added file by itself in one commit, then checking in the modifications and the share in the second operation, but I'd rather just do the whole thing in a single step as they are conceptually one change.
Add and Share: Is it possible?
Moderator: SourceGear
Re: Add and Share: Is it possible?
There isn't a way to do this, since the file hasn't yet been added.
You could consider scripting this in a batch file and using the Vault Command Line Client to run the two transactions one right after the other.
You could consider scripting this in a batch file and using the Vault Command Line Client to run the two transactions one right after the other.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager