git-cc
git-cc copied to clipboard
Include Activity name in Git Commit Comment
Would there be a way to include both the Activity name and Check-in comment from ClearCase in the commit comment in Git??
Even if this isn't desired for the main project, I would appreciate any help in implementing this in my own fork.
@benhager This is for UCM obviously? For base Clearcase the comment was used to join multiple checkins in to a single git commit. For UCM I switched this to just the activity.
https://github.com/charleso/git-cc/blob/842288eac7a7038a7ec4c8dad407ca6b47e441cc/clearcase.py#L42
Which is used in the lshistory
fmt string:
https://github.com/charleso/git-cc/blob/master/rebase.py#L18
And possibly change the parser:
https://github.com/charleso/git-cc/blob/master/rebase.py#L127
I hope this helps.
PS. I'm not against having the commit comment in the git commit - if you send me a PR I'm happy to take a look.