+1

Copy full first-paragraph of commit message in "Copy Selection in Column"

Sync 7 years ago updated by Thomas Singer 7 years ago 5

I wanted to copy out the first paragraph of each commit's message (for n commits) through the "Copy Selection in Column" feature, for a weekly summary report of what has changed. However, if the column is not wide enough, SmartGit truncates it with an ellipsis. The bad part is the copied text is the truncated version, not the full version.


It would be nice if the copied text is the full first paragraph.

That would only work for 1 commit. If I want to copy out 50 commits for a particular QA release, that would not be pleasant.

No, Copy Message works for multiple selected commits - at least in the latest SmartGit 17.

I upgraded and tried "Copy Message". That would copy out the entire message, which could be multi-paragraphed. I just need the headlines, as summarized in the Journal/Log view, to serve as a quick "releases notes" for this week's QA. With "Copy Message", I would then need to delete out the extra paragraphs -- which is very hard to do because I won't know whether the paragraph is extra info or the next commit message.


Also, just to add on to the initial post, seems like the truncation is not based on the user's column width, but is usually truncated around 100 characters.

Also, just to add on to the initial post, seems like the truncation is not based on the user's column width, but is usually truncated around 100 characters.

Yes, because otherwise the column could become extremely wide when making it as wide as the content (double-click between table headers).