{"thread":{"id":"27903","subject":"git-show / tig: no indention for commit message","startedAt":"2011-05-11T11:36:55Z","lastAt":"2011-07-25T01:29:10Z","messageCount":3,"participants":["Enrico Weigelt","Andreas Schwab","Jonas Fonseca"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"171906","messageId":"20110511113655.GB24644@nibiru.local","threadId":"27903","inReplyTo":null,"subject":"git-show / tig: no indention for commit message","fromName":"Enrico Weigelt","fromEmail":"weigelt@metux.de","sentAt":"2011-05-11T11:36:55Z","receivedAt":"2011-05-11T11:36:55Z","isPatch":false,"sender":{"key":"weigelt@metux.de","avatar":null},"body":"\nHi folks,\n\n\nI often have to copy+paste commit messages from tig (when putting\nchanges into TFS manually ;-o), and the 4-spaces indention is quite\nunhandy here. Is there a way to switch it off ?\n\n\ncu\n-- \n----------------------------------------------------------------------\n Enrico Weigelt, metux IT service -- http://www.metux.de/\n\n phone:  +49 36207 519931  email: weigelt@metux.de\n mobile: +49 151 27565287  icq:   210169427         skype: nekrad666\n----------------------------------------------------------------------\n Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme\n----------------------------------------------------------------------\n"},{"id":"171923","messageId":"m2pql0m8og.fsf@linux-m68k.org","threadId":"27903","inReplyTo":"20110511113655.GB24644@nibiru.local","subject":"Re: git-show / tig: no indention for commit message","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2011-07-24T07:36:47Z","receivedAt":"2011-07-24T07:36:47Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Enrico Weigelt <weigelt@metux.de> writes:\n\n> I often have to copy+paste commit messages from tig (when putting\n> changes into TFS manually ;-o), and the 4-spaces indention is quite\n> unhandy here. Is there a way to switch it off ?\n\nYou could use git cat-file instead.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"171974","messageId":"CAFuPQ1JY29w+iBsVY_sOLksbz_tTL_JJpe_vpbWWu0Lx3D5mMA@mail.gmail.com","threadId":"27903","inReplyTo":"20110511113655.GB24644@nibiru.local","subject":"Re: git-show / tig: no indention for commit message","fromName":"Jonas Fonseca","fromEmail":"fonseca@diku.dk","sentAt":"2011-07-25T01:29:10Z","receivedAt":"2011-07-25T01:29:10Z","isPatch":false,"sender":{"key":"fonseca@diku.dk","avatar":"https://gravatar.com/avatar/f82f3ad698717c51873b020c750a92438c820a24056dc39fe4d07baa10a92264?d=mp&s=160"},"body":"On Wed, May 11, 2011 at 07:36, Enrico Weigelt <weigelt@metux.de> wrote:\n> I often have to copy+paste commit messages from tig (when putting\n> changes into TFS manually ;-o), and the 4-spaces indention is quite\n> unhandy here. Is there a way to switch it off ?\n\nWhy not configure a keybinding to run a small shell script, where you\ncan use xclip or something similar to copy to the clipboard?\n\nThe following .git/config example abuses a git alias (in place of a\nshell script) to output the raw commit text when P is pressed:\n\n[tig \"bind\"]\n  generic = P !git copy-commit-message %(commit)\n[alias]\n  copy-commit-message = !\"git log --format=%B -1\"\n\n-- \nJonas Fonseca\n"}]}