Package: git
Version: 1:2.1.4-2.1+deb8u2
Severity: wishlist
Tags: upstream

Hi,

I'm trying to cherry-pick merges in a script, and the manual page says that
in order to do that, I need to pass the number of the "mainline" ancestor
in the list of parents.

This is rather annoying to use from a script, especially as it should be
easy to determine automatically: the mainline is the commit that is
reachable from the current mainline branch.

So it would be nice to have an option that allows me to treat a certain
commit-ish as the mainline, with the expectation that only one of the
parent commits of the merge commit being cherry-picked will be reachable
from that revision.

If that isn't possible for some reason, it would be nice if I could at
least use a commit ID instead of an index into a list of commit IDs -- that
would make scripting a lot easier.

   Simon

-- System Information:
Debian Release: 8.5
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages git depends on:
ii  git-man          1:2.1.4-2.1+deb8u2
ii  libc6            2.19-18+deb8u4
ii  libcurl3-gnutls  7.38.0-4+deb8u3
ii  liberror-perl    0.17-1.1
ii  libexpat1        2.1.0-6+deb8u3
ii  libpcre3         2:8.35-3.3+deb8u4
ii  perl-modules     5.20.2-3+deb8u5
ii  zlib1g           1:1.2.8.dfsg-2+b1

Versions of packages git recommends:
ii  less                         458-3
ii  openssh-client [ssh-client]  1:6.7p1-5+deb8u2
ii  patch                        2.7.5-1
ii  rsync                        3.1.1-3

Versions of packages git suggests:
ii  gettext-base                          0.19.3-2
pn  git-arch                              <none>
pn  git-cvs                               <none>
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
ii  git-email                             1:2.1.4-2.1+deb8u2
pn  git-gui                               <none>
pn  git-mediawiki                         <none>
ii  git-svn                               1:2.1.4-2.1+deb8u2
pn  gitk                                  <none>
pn  gitweb                                <none>

-- no debconf information

Reply via email to