Re: git-show / tig: no indention for commit message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 11, 2011 at 07:36, Enrico Weigelt <weigelt@xxxxxxxx> wrote:
> 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"

-- 
Jonas Fonseca
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]