]> git.pld-linux.org Git - packages/git-core.git/commitdiff
make gitk's cherry-pick commitlog more user friendly.
authorPaweł Sikora <pawel.sikora@agmk.net>
Thu, 21 Feb 2013 21:19:00 +0000 (22:19 +0100)
committerPaweł Sikora <pawel.sikora@agmk.net>
Thu, 21 Feb 2013 21:19:00 +0000 (22:19 +0100)
cherry-picked-commitlog.patch [new file with mode: 0644]
git-core.spec

diff --git a/cherry-picked-commitlog.patch b/cherry-picked-commitlog.patch
new file mode 100644 (file)
index 0000000..fee97a7
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/gitk-git/gitk.orig b/gitk-git/gitk
+index ce63a8c..4ae5a56 100755
+--- a/gitk-git/gitk.orig
++++ b/gitk-git/gitk
+@@ -9150,7 +9150,7 @@ proc cherrypick {} {
+     update
+     # Unfortunately git-cherry-pick writes stuff to stderr even when
+     # no error occurs, and exec takes that as an indication of error...
+-    if {[catch {exec sh -c "git cherry-pick -r $rowmenuid 2>&1"} err]} {
++    if {[catch {exec sh -c "git cherry-pick -x -r $rowmenuid 2>&1"} err]} {
+       notbusy cherrypick
+       if {[regexp -line \
+                {Entry '(.*)' (would be overwritten by merge|not uptodate)} \
index e5f7471457d4d59fdec4426d0d824a708e7038f8..03bdb9011c2de3c001dbe2d702a08af2e8604b16 100644 (file)
@@ -24,6 +24,7 @@ Source6:      %{name}.init
 Patch0:                %{name}-tests.patch
 Patch1:                %{name}-key-bindings.patch
 Patch2:                %{name}-sysconfdir.patch
+Patch3:                cherry-picked-commitlog.patch
 URL:           http://git-scm.com/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake
@@ -379,6 +380,7 @@ Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
 %patch0 -p1
 %patch1 -p0
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__aclocal}
This page took 0.316876 seconds and 4 git commands to generate.