git-show / tig: no indention for commit message
Hi folks,
I often have to copy+paste commit messages from tig (when putting changes into TFS manually ;-o), and the 4-spaces indention is quite unhandy here. Is there a way to switch it off ?
cu
Signature · 8 lines
---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: [email protected] mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------
Quoted 3 lines · Enrico Weigelt
I often have to copy+paste commit messages from tig (when putting changes into TFS manually ;-o), and the 4-spaces indention is quite unhandy here. Is there a way to switch it off ?
Why not configure a keybinding to run a small shell script, where you can use xclip or something similar to copy to the clipboard?
The following .git/config example abuses a git alias (in place of a shell script) to output the raw commit text when P is pressed:
[tig "bind"]
generic = P !git copy-commit-message %(commit)
[alias]
copy-commit-message = !"git log --format=%B -1"
Signature · 1 line
Jonas Fonseca
Quoted 3 lines · Enrico Weigelt
I often have to copy+paste commit messages from tig (when putting changes into TFS manually ;-o), and the 4-spaces indention is quite unhandy here. Is there a way to switch it off ?
You could use git cat-file instead.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."