git-cc icon indicating copy to clipboard operation
git-cc copied to clipboard

Include Activity name in Git Commit Comment

Open benhager opened this issue 9 years ago • 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 avatar Jul 22 '15 18:07 benhager

@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.

charleso avatar Jul 22 '15 22:07 charleso

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.

charleso avatar Jul 22 '15 22:07 charleso