Skip to content

Instantly share code, notes, and snippets.

@offlinemark
Created January 5, 2022 11:29
Show Gist options
  • Save offlinemark/12b6d2044f5f6efbee05a89363997fe1 to your computer and use it in GitHub Desktop.
Save offlinemark/12b6d2044f5f6efbee05a89363997fe1 to your computer and use it in GitHub Desktop.
gitk patch to not show date in 'copy reference'
commit 61e26f68cb15f6753936f66766149dd738f8b1ac
Author: Mark Mossberg
Date: Wed Jan 5 12:22:19 2022 +0100
gitk: Don't copy date with commit reference
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 23d9dd1..e70c42a 100755
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -9447,8 +9447,8 @@ proc mktaggo {} {
proc copyreference {} {
global rowmenuid autosellen
- set format "%h (\"%s\", %ad)"
- set cmd [list git show -s --pretty=format:$format --date=short]
+ set format "%h (\"%s\")"
+ set cmd [list git show -s --pretty=format:$format]
if {$autosellen < 40} {
lappend cmd --abbrev=$autosellen
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment