Merge branch 'cn/cherry-pick-range-docs'
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2012 18:25:38 +0000 (11:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2012 18:25:38 +0000 (11:25 -0700)
The command line argument of "git cherry-pick maint master..next" is
just an ordinary revision range, which is unintuitive and at least
deserves documentation.

* cn/cherry-pick-range-docs:
  git-cherry-pick.txt: clarify the use of revision range notation
  Documentation: --no-walk is no-op if range is specified

1  2 
Documentation/git-cherry-pick.txt
Documentation/rev-list-options.txt

index 9f3dae631e5437662e9fb3583b24f414c93bb140,49ac61c3d02c2a1dd5111550f70f87cbd311c8f8..0e170a51cac1de3f20b31f8dba7f832c292b815c
@@@ -149,7 -132,16 +151,16 @@@ EXAMPLE
        Apply the changes introduced by all commits that are ancestors
        of master but not of HEAD to produce new commits.
  
 -`git cherry-pick master{tilde}4 master{tilde}2`::
+ `git cherry-pick maint next ^master`::
+ `git cherry-pick maint master..next`::
+       Apply the changes introduced by all commits that are
+       ancestors of maint or next, but not master or any of its
+       ancestors.  Note that the latter does not mean `maint` and
+       everything between `master` and `next`; specifically,
+       `maint` will not be used if it is included in `master`.
 +`git cherry-pick master~4 master~2`::
  
        Apply the changes introduced by the fifth and third last
        commits pointed to by master and create 2 new commits with
Simple merge