@matheusbsbs / matheus-bagliano / commits / b8b60957ce
Fork 0

gitk: rename "commit summary" to "commit reference"

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 <dev+git@drbeat.li> [dl: based the patch on gitk's tree] Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>

Beat Bolli committed Dec 12, 2019 at 16:44 UTC b8b60957ce91b237b7f8925a3126b2662d3fcf41
1 file changed +4 -4
gitk
+4 -4
@@ -2640,7 +2640,7 @@ proc makewindow {} {
2640 {mc "Diff selected -> this" command {diffvssel 1}}
2641 {mc "Make patch" command mkpatch}
2642 {mc "Create tag" command mktag}
2643 - {mc "Copy commit summary" command copysummary}
2643 + {mc "Copy commit reference" command copyreference}
2644 {mc "Write commit to file" command writecommit}
2645 {mc "Create new branch" command mkbranch}
2646 {mc "Cherry-pick this commit" command cherrypick}
@@ -9426,7 +9426,7 @@ proc mktaggo {} {
9426 mktagcan
9427 }
9428
9429 -proc copysummary {} {
9429 +proc copyreference {} {
9430 global rowmenuid autosellen
9431
9432 set format "%h (\"%s\", %ad)"
@@ -9434,10 +9434,10 @@ proc copysummary {} {
9434 if {$autosellen < 40} {
9435 lappend cmd --abbrev=$autosellen
9436 }
9437 - set summary [eval exec $cmd $rowmenuid]
9437 + set reference [eval exec $cmd $rowmenuid]
9438
9439 clipboard clear
9440 - clipboard append $summary
9440 + clipboard append $reference
9441 }
9442
9443 proc writecommit {} {