I'm looking for a way to archive a (Git) branch (not export it to a file as the Repository -> Archive... command does.
I've had a brief look at custom actions, but I'm not sure how to get started. What I'd like to do:
I would also like to be able to do the reverse:
Is there an existing way to do this? If not, is it possible to write a custom action to do this?
Hi
I think you will struggle to do this as a simple custom action, you will essentially have to write all the logic in your external code, e.g. in a PowerShell script.
Custom actions do provide some hooks into the Sourcetree environment, i.e. $FILE, $REPO, $SHA but you will need to determine your current TAG or BRANCH information by prompting from your code as there is no mechanism with Sourcetree custom actions to prompt the user for input.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.