<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/examples/git-commit.sh, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2018-03-26T20:48:50Z</updated>
<entry>
<title>Remove contrib/examples/*</title>
<updated>2018-03-26T20:48:50Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-03-25T20:46:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=49eb8d39c78f161231e63293df60f343d208f409'/>
<id>urn:sha1:49eb8d39c78f161231e63293df60f343d208f409</id>
<content type='text'>
There were some side discussions at Git Merge this year about how we
should just update the README to tell users they can dig these up from
the history if the need them, do that.

Looking at the "git log" for this directory we get quite a bit more
patch churn than we should here, mainly from things fixing various
tree-wide issues.

There's also confusion on the list occasionally about how these should
be treated, "Re: [PATCH 1/4] stash: convert apply to
builtin" (&lt;CA+CzEk9QpmHK_TSBwQfEedNqrcVSBp3xY7bdv1YA_KxePiFeXw@mail.gmail.com&gt;)
being the latest example of that.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/examples/git-commit.sh: use the $( ... ) construct for command substitution</title>
<updated>2015-12-27T23:33:13Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2015-12-22T14:10:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=a22c9e8d9e29277f51b77aff8d0eee3945577e72'/>
<id>urn:sha1:a22c9e8d9e29277f51b77aff8d0eee3945577e72</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
	perl -i -pe 'BEGIN{undef $/;} s/`(.+?)`/\$(\1)/smg'  "${_f}"
done

and then carefully proof-read.

Signed-off-by: Elia Pinto &lt;gitter.spiros@gmail.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/examples/git-commit.sh: avoid "test &lt;cond&gt; -a/-o &lt;cond&gt;"</title>
<updated>2014-06-09T21:47:06Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-06-06T14:55:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0783df5d2603c97a481be839bdc65088787dde1b'/>
<id>urn:sha1:0783df5d2603c97a481be839bdc65088787dde1b</id>
<content type='text'>
The construct is error-prone; "test" being built-in in most modern
shells, the reason to avoid "test &lt;cond&gt; &amp;&amp; test &lt;cond&gt;" spawning
one extra process by using a single "test &lt;cond&gt; -a &lt;cond&gt;" no
longer exists.

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>Merge branch 'ep/shell-command-substitution'</title>
<updated>2014-04-21T17:42:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-21T17:42:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=0e6e1a5fbdd3143b74bf45f009bb4e850bdc785a'/>
<id>urn:sha1:0e6e1a5fbdd3143b74bf45f009bb4e850bdc785a</id>
<content type='text'>
* ep/shell-command-substitution:
  t9362-mw-to-git-utf8.sh: use the $( ... ) construct for command substitution
  t9360-mw-to-git-clone.sh: use the $( ... ) construct for command substitution
  git-tag.sh: use the $( ... ) construct for command substitution
  git-revert.sh: use the $( ... ) construct for command substitution
  git-resolve.sh: use the $( ... ) construct for command substitution
  git-repack.sh: use the $( ... ) construct for command substitution
  git-merge.sh: use the $( ... ) construct for command substitution
  git-ls-remote.sh: use the $( ... ) construct for command substitution
  git-fetch.sh: use the $( ... ) construct for command substitution
  git-commit.sh: use the $( ... ) construct for command substitution
  git-clone.sh: use the $( ... ) construct for command substitution
  git-checkout.sh: use the $( ... ) construct for command substitution
  install-webdoc.sh: use the $( ... ) construct for command substitution
  howto-index.sh: use the $( ... ) construct for command substitution
</content>
</entry>
<entry>
<title>git-commit.sh: use the $( ... ) construct for command substitution</title>
<updated>2014-04-17T18:14:59Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-04-16T17:29:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=346b54dbc92bb3c928d326da9d8addf5eb50acce'/>
<id>urn:sha1:346b54dbc92bb3c928d326da9d8addf5eb50acce</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>contrib: fix misuses of "nor"</title>
<updated>2014-03-31T22:17:56Z</updated>
<author>
<name>Justin Lebar</name>
<email>jlebar@google.com</email>
</author>
<published>2014-03-31T22:11:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=e34b272344c1e7eb640dcce5990a75460240daed'/>
<id>urn:sha1:e34b272344c1e7eb640dcce5990a75460240daed</id>
<content type='text'>
Signed-off-by: Justin Lebar &lt;jlebar@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>examples/commit: use --abbrev for commit summary</title>
<updated>2010-07-27T20:29:32Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2010-07-27T18:44:51Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1'/>
<id>urn:sha1:7f1592db5d4cba2b3de3a1ce46eb8c05bd33e0a1</id>
<content type='text'>
After v1.7.1.1~17^2~3 (pretty: Respect --abbrev option, 2010-05-03),
plumbing users do not abbreviate %h hashes by default any more.

Noticed while investigating the bug fixed by v1.7.1.1~17^2
(commit::print_summary(): don't use format_commit_message(),
2010-06-12).

Cc: Will Palmer &lt;wmpalmer@gmail.com&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>Replace uses of "git-var" with "git var"</title>
<updated>2008-07-30T18:42:01Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2008-07-30T17:48:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5354a56fe70420c147f930e0f7f1decbae685d19'/>
<id>urn:sha1:5354a56fe70420c147f930e0f7f1decbae685d19</id>
<content type='text'>
Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kh/commit'</title>
<updated>2007-12-05T01:16:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-12-05T01:16:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=31cbb5d96151891491168d3f813e6898c9ef825b'/>
<id>urn:sha1:31cbb5d96151891491168d3f813e6898c9ef825b</id>
<content type='text'>
* kh/commit: (33 commits)
  git-commit --allow-empty
  git-commit: Allow to amend a merge commit that does not change the tree
  quote_path: fix collapsing of relative paths
  Make git status usage say git status instead of git commit
  Fix --signoff in builtin-commit differently.
  git-commit: clean up die messages
  Do not generate full commit log message if it is not going to be used
  Remove git-status from list of scripts as it is builtin
  Fix off-by-one error when truncating the diff out of the commit message.
  builtin-commit.c: export GIT_INDEX_FILE for launch_editor as well.
  Add a few more tests for git-commit
  builtin-commit: Include the diff in the commit message when verbose.
  builtin-commit: fix partial-commit support
  Fix add_files_to_cache() to take pathspec, not user specified list of files
  Export three helper functions from ls-files
  builtin-commit: run commit-msg hook with correct message file
  builtin-commit: do not color status output shown in the message template
  file_exists(): dangling symlinks do exist
  Replace "runstatus" with "status" in the tests
  t7501-commit: Add test for git commit &lt;file&gt; with dirty index.
  ...
</content>
</entry>
<entry>
<title>Port git commit to C.</title>
<updated>2007-11-23T01:05:02Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@redhat.com</email>
</author>
<published>2007-11-08T16:59:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=f5bbc3225c4b073a7ff3218164a0c820299bc9c6'/>
<id>urn:sha1:f5bbc3225c4b073a7ff3218164a0c820299bc9c6</id>
<content type='text'>
This makes git commit a builtin and moves git-commit.sh to
contrib/examples.  This also removes the git-runstatus
helper, which was mostly just a git-status.sh implementation detail.

Signed-off-by: Kristian Høgsberg &lt;krh@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
