<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/examples/git-clone.sh, branch v2.3.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-06-09T21:47:06Z</updated>
<entry>
<title>contrib/examples/git-clone.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:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb9d69ad638fe34d214cf9cb2850e38be6e6d639'/>
<id>urn:sha1:cb9d69ad638fe34d214cf9cb2850e38be6e6d639</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>git-clone.sh: use the $( ... ) construct for command substitution</title>
<updated>2014-04-17T18:14:58Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-04-16T17:29:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=add77e8400252ef59441770a96379dcad797b649'/>
<id>urn:sha1:add77e8400252ef59441770a96379dcad797b649</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>Merge branch 'db/clone-in-c'</title>
<updated>2008-05-25T20:41:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-05-25T20:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b84c343c885b8168047b2773b5c597d04337d9bd'/>
<id>urn:sha1:b84c343c885b8168047b2773b5c597d04337d9bd</id>
<content type='text'>
* db/clone-in-c:
  Add test for cloning with "--reference" repo being a subset of source repo
  Add a test for another combination of --reference
  Test that --reference actually suppresses fetching referenced objects
  clone: fall back to copying if hardlinking fails
  builtin-clone.c: Need to closedir() in copy_or_link_directory()
  builtin-clone: fix initial checkout
  Build in clone
  Provide API access to init_db()
  Add a function to set a non-default work tree
  Allow for having for_each_ref() list extra refs
  Have a constant extern refspec for "--tags"
  Add a library function to add an alternate to the alternates file
  Add a lockfile function to append to a file
  Mark the list of refs to fetch as const

Conflicts:

	cache.h
	t/t5700-clone-reference.sh
</content>
</entry>
<entry>
<title>Build in clone</title>
<updated>2008-05-05T00:41:45Z</updated>
<author>
<name>Daniel Barkalow</name>
<email>barkalow@iabervon.org</email>
</author>
<published>2008-04-27T17:39:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8434c2f1afedb936e0ea8c07ce25733013c2f743'/>
<id>urn:sha1:8434c2f1afedb936e0ea8c07ce25733013c2f743</id>
<content type='text'>
Thanks to Johannes Schindelin for various comments and improvements,
including supporting cloning full bundles.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
