0

We are using SourceTree and we have quite a lot of branches, but we use the convention of naming a branch by case like this:

FB5678

where 5678 represents the case number. Another convention we have is to have commit messages like this:

Case 5678 - Done the optimizations requested

I would like to have a text like

Case 5678 -

in the commit message box and to not have to type it each time I do a commit. This text is preferred for any normal commits, that is, not merges and not case closures or openings. Is this possible via setting things up or writing a script? How?

4
  • Are you using bookmarks or named branches?
    – andref
    Aug 28, 2016 at 23:29
  • We use named branches. Their names look like FB<case number> Aug 29, 2016 at 6:35
  • @LazyBadger, thank you for the suggestion. I will think about it. However, from a technical perspective, is there support for this, or is this not supported? Aug 30, 2016 at 9:00
  • I don't know ans use SourceTree, but from the side of pure Mercurial - hooks, something like this precommit hook Aug 30, 2016 at 10:40

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.