charleso/git-cc

Include Activity name in Git Commit Comment

benhager opened this issue · 2 comments

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.

return '%[activity]p'

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.