<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/examples/git-revert.sh, branch v2.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-04-17T18:15:00Z</updated>
<entry>
<title>git-revert.sh: use the $( ... ) construct for command substitution</title>
<updated>2014-04-17T18:15:00Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-04-16T17:29:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb6644a32fa06ff2698ecc66f4008d2afdf0b9c7'/>
<id>urn:sha1:fb6644a32fa06ff2698ecc66f4008d2afdf0b9c7</id>
<content type='text'>
The Git CodingGuidelines prefer the $(...) construct for command
substitution instead of using the backquotes `...`.

The backquoted form is the traditional method for command
substitution, and is supported by POSIX.  However, all but the
simplest uses become complicated quickly.  In particular, embedded
command substitutions and/or the use of double quotes require
careful escaping with the backslash character.

The patch was generated by:

for _f in $(find . -name "*.sh")
do
   sed -i 's@`\(.*\)`@$(\1)@g' ${_f}
done

and then carefully proof-read.

Signed-off-by: Elia Pinto &lt;gitter.spiros@gmail.com&gt;
Reviewed-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cherry-pick/revert: add support for -X/--strategy-option</title>
<updated>2010-12-28T19:27:56Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2010-12-11T00:51:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67ac1e1d57e45899a4dfd900a0249f48507584b5'/>
<id>urn:sha1:67ac1e1d57e45899a4dfd900a0249f48507584b5</id>
<content type='text'>
For example, this would allow cherry-picking or reverting patches from
a piece of history with a different end-of-line style, like so:

	$ git revert -Xrenormalize old-problematic-commit

Currently that is possible with manual use of merge-recursive but the
cherry-pick/revert porcelain does not expose the functionality.

While at it, document the existing support for --strategy.

Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Eliminate “Finished cherry-pick/revert” message</title>
<updated>2010-08-16T02:12:00Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2010-08-11T08:36:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=130ab8ab9c64b59b367c08a041200b6b75758b91'/>
<id>urn:sha1:130ab8ab9c64b59b367c08a041200b6b75758b91</id>
<content type='text'>
When cherry-pick was written (v0.99.6~63, 2005-08-27), “git commit”
was quiet, and the output from cherry-pick provided useful information
about the progress of a rebase.

Now next to the output from “git commit”, the cherry-pick notification
is so much noise (except for the name of the picked commit).

 $ git cherry-pick ..topic
 Finished cherry-pick of 499088b.
 [detached HEAD 17e1ff2] Move glob module to libdpkg
  Author: Guillem Jover &lt;guillem@debian.org&gt;
  8 files changed, 12 insertions(+), 9 deletions(-)
  rename {src =&gt; lib/dpkg}/glob.c (98%)
  rename {src =&gt; lib/dpkg}/glob.h (93%)
 Finished cherry-pick of ae947e1.
 [detached HEAD 058caa3] libdpkg: Add missing symbols to Versions script
  Author: Guillem Jover &lt;guillem@debian.org&gt;
  1 files changed, 2 insertions(+), 0 deletions(-)
 $

The noise is especially troublesome when sifting through the output of
a rebase or multiple cherry-pick that eventually failed.

With the commit subject, it is already not hard to figure out where
the commit came from.  So drop the “Finished” message.

Cc: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Cc: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib: resurrect scripted git-revert.</title>
<updated>2007-12-27T01:38:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-12-27T01:38:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e25cfae6677423d05a81c0862f58d3319141794c'/>
<id>urn:sha1:e25cfae6677423d05a81c0862f58d3319141794c</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
