]> git.ipfire.org Git - thirdparty/git.git/commit
gitk: support auto-copy comit ID to primary clipboard
authorAvi Halachmi (:avih) <avihpit@yahoo.com>
Wed, 11 Dec 2024 09:22:03 +0000 (11:22 +0200)
committerAvi Halachmi (:avih) <avihpit@yahoo.com>
Thu, 12 Dec 2024 23:37:08 +0000 (01:37 +0200)
commitd77c3e35bbca78a0cee6f0eacecccd9aac957c8b
tree11d8897d0890a32e998df0d0e06ff1ead6b252e7
parent92d911a531e905ec730fa527d55d1622e948d83a
gitk: support auto-copy comit ID to primary clipboard

Auto-select ("Copy commit ID to X11 selection") is useful when a
selection cliboard exists, but otherwise generally meaningless, for
instance on Windows.

Add a similar pref and behavior which copies the commit ID to the
primary clipboard - for platforms without a selection clipboard, but
which can also be useful additionally on platforms with selection.

Note that while autoselect is enabled by default, autocopy isn't.

That's because the selection clipboard is typically dispensable, while
the primary clipboard can be considered a more precious resource,
which we don't want to (clear and) overwrite by default.

Signed-off-by: Avi Halachmi (:avih) <avihpit@yahoo.com>
gitk