Skip to content

Commit

Permalink
gitk: rename "commit summary" to "commit reference"
Browse files Browse the repository at this point in the history
Now that the commit reference format has a canonical name, let's use this
name in gitk's UI and implementation.

Signed-off-by: Beat Bolli <[email protected]>
[dl: based the patch on gitk's tree]
Signed-off-by: Denton Liu <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
bbolli authored and paulusmack committed Dec 15, 2019
1 parent 2a4ac71 commit b8b6095
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,7 @@ proc makewindow {} {
{mc "Diff selected -> this" command {diffvssel 1}}
{mc "Make patch" command mkpatch}
{mc "Create tag" command mktag}
{mc "Copy commit summary" command copysummary}
{mc "Copy commit reference" command copyreference}
{mc "Write commit to file" command writecommit}
{mc "Create new branch" command mkbranch}
{mc "Cherry-pick this commit" command cherrypick}
Expand Down Expand Up @@ -9426,18 +9426,18 @@ proc mktaggo {} {
mktagcan
}

proc copysummary {} {
proc copyreference {} {
global rowmenuid autosellen

set format "%h (\"%s\", %ad)"
set cmd [list git show -s --pretty=format:$format --date=short]
if {$autosellen < 40} {
lappend cmd --abbrev=$autosellen
}
set summary [eval exec $cmd $rowmenuid]
set reference [eval exec $cmd $rowmenuid]

clipboard clear
clipboard append $summary
clipboard append $reference
}

proc writecommit {} {
Expand Down

0 comments on commit b8b6095

Please sign in to comment.