<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/fetch.c, branch v2.1.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.1.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.1.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-08-18T17:14:19Z</updated>
<entry>
<title>fetch: silence git-gc if --quiet is given</title>
<updated>2014-08-18T17:14:19Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-08-16T01:19:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6fceed3bea59d747c160972c67663e8b8c281229'/>
<id>urn:sha1:6fceed3bea59d747c160972c67663e8b8c281229</id>
<content type='text'>
Noticed-by: Matthew Flaschen &lt;mflaschen@wikimedia.org&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch: convert argv_gc_auto to struct argv_array</title>
<updated>2014-08-18T17:14:08Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-08-16T01:19:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1991006cb9c84ec11de8a5ebf9e419f0ac1f00d0'/>
<id>urn:sha1:1991006cb9c84ec11de8a5ebf9e419f0ac1f00d0</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/xstrfmt'</title>
<updated>2014-07-09T18:34:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-09T18:34:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b8e8af187cb86ed030432f1a067121fdd4b1c3b'/>
<id>urn:sha1:3b8e8af187cb86ed030432f1a067121fdd4b1c3b</id>
<content type='text'>
* jk/xstrfmt:
  setup_git_env(): introduce git_path_from_env() helper
  unique_path: fix unlikely heap overflow
  walker_fetch: fix minor memory leak
  merge: use argv_array when spawning merge strategy
  sequencer: use argv_array_pushf
  setup_git_env: use git_pathdup instead of xmalloc + sprintf
  use xstrfmt to replace xmalloc + strcpy/strcat
  use xstrfmt to replace xmalloc + sprintf
  use xstrdup instead of xmalloc + strcpy
  use xstrfmt in favor of manual size calculations
  strbuf: add xstrfmt helper
</content>
</entry>
<entry>
<title>use xstrfmt to replace xmalloc + strcpy/strcat</title>
<updated>2014-06-19T22:20:54Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-06-19T21:26:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2724c87872aaec55dd7e5529aa029c3108b43a5'/>
<id>urn:sha1:b2724c87872aaec55dd7e5529aa029c3108b43a5</id>
<content type='text'>
It's easy to get manual allocation calculations wrong, and
the use of strcpy/strcat raise red flags for people looking
for buffer overflows (though in this case each site was
fine).

It's also shorter to use xstrfmt, and the printf-format
tends to be easier for a reader to see what the final string
will look like.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch: allow explicit --refmap to override configuration</title>
<updated>2014-06-05T22:13:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-05-29T22:21:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c5558f80c3a34f411022f1bc67f8364556ca3922'/>
<id>urn:sha1:c5558f80c3a34f411022f1bc67f8364556ca3922</id>
<content type='text'>
Since the introduction of opportunisitic updates of remote-tracking
branches, started at around f2690487 (fetch: opportunistically
update tracking refs, 2013-05-11) with a few updates in v1.8.4 era,
the remote.*.fetch configuration always kicks in even when a refspec
to specify what to fetch is given on the command line, and there is
no way to disable or override it per-invocation.

Teach the command to pay attention to the --refmap=&lt;lhs&gt;:&lt;rhs&gt;
command-line options that can be used to override the use of
configured remote.*.fetch as the refmap.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
---
</content>
</entry>
<entry>
<title>Merge branch 'ep/varscope'</title>
<updated>2014-02-27T22:01:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-02-27T22:01:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=043478308feec3cda9b3473bc0b79396cb9d4db6'/>
<id>urn:sha1:043478308feec3cda9b3473bc0b79396cb9d4db6</id>
<content type='text'>
Shrink lifetime of variables by moving their definitions to an
inner scope where appropriate.

* ep/varscope:
  builtin/gc.c: reduce scope of variables
  builtin/fetch.c: reduce scope of variable
  builtin/commit.c: reduce scope of variables
  builtin/clean.c: reduce scope of variable
  builtin/blame.c: reduce scope of variables
  builtin/apply.c: reduce scope of variables
  bisect.c: reduce scope of variable
</content>
</entry>
<entry>
<title>builtin/fetch.c: reduce scope of variable</title>
<updated>2014-01-31T18:44:05Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-01-29T16:54:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bf7e645c90e08f0d3391502c888453033e446372'/>
<id>urn:sha1:bf7e645c90e08f0d3391502c888453033e446372</id>
<content type='text'>
Signed-off-by: Elia Pinto &lt;gitter.spiros@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/shallow-clone'</title>
<updated>2014-01-17T20:21:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-01-17T20:21:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=92251b1b5b5e53ac9de890105e2a2bd9d15e2ecb'/>
<id>urn:sha1:92251b1b5b5e53ac9de890105e2a2bd9d15e2ecb</id>
<content type='text'>
Fetching from a shallow-cloned repository used to be forbidden,
primarily because the codepaths involved were not carefully vetted
and we did not bother supporting such usage. This attempts to allow
object transfer out of a shallow-cloned repository in a controlled
way (i.e. the receiver become a shallow repository with truncated
history).

* nd/shallow-clone: (31 commits)
  t5537: fix incorrect expectation in test case 10
  shallow: remove unused code
  send-pack.c: mark a file-local function static
  git-clone.txt: remove shallow clone limitations
  prune: clean .git/shallow after pruning objects
  clone: use git protocol for cloning shallow repo locally
  send-pack: support pushing from a shallow clone via http
  receive-pack: support pushing to a shallow clone via http
  smart-http: support shallow fetch/clone
  remote-curl: pass ref SHA-1 to fetch-pack as well
  send-pack: support pushing to a shallow clone
  receive-pack: allow pushes that update .git/shallow
  connected.c: add new variant that runs with --shallow-file
  add GIT_SHALLOW_FILE to propagate --shallow-file to subprocesses
  receive/send-pack: support pushing from a shallow clone
  receive-pack: reorder some code in unpack()
  fetch: add --update-shallow to accept refs that update .git/shallow
  upload-pack: make sure deepening preserves shallow roots
  fetch: support fetching from a shallow repository
  clone: support remote shallow repository
  ...
</content>
</entry>
<entry>
<title>fetch --prune: Run prune before fetching</title>
<updated>2014-01-03T18:18:40Z</updated>
<author>
<name>Tom Miller</name>
<email>jackerran@gmail.com</email>
</author>
<published>2014-01-03T02:28:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=10a6cc8890ec1e5459c05ddeb28a671acdc37d60'/>
<id>urn:sha1:10a6cc8890ec1e5459c05ddeb28a671acdc37d60</id>
<content type='text'>
When we have a remote-tracking branch named "frotz/nitfol" from a
previous fetch, and the upstream now has a branch named "frotz",
fetch would fail to remove "frotz/nitfol" with a "git fetch --prune"
from the upstream. git would inform the user to use "git remote
prune" to fix the problem.

Change the way "fetch --prune" works by moving the pruning operation
before the fetching operation. This way, instead of warning the user
of a conflict, it autmatically fixes it.

Signed-off-by: Tom Miller &lt;jackerran@gmail.com&gt;
Tested-by: Thomas Rast &lt;tr@thomasrast.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch --prune: always print header url</title>
<updated>2014-01-03T18:13:39Z</updated>
<author>
<name>Tom Miller</name>
<email>jackerran@gmail.com</email>
</author>
<published>2014-01-03T02:28:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4b3b33a747c325f76b1f6eef89c231609dd4d361'/>
<id>urn:sha1:4b3b33a747c325f76b1f6eef89c231609dd4d361</id>
<content type='text'>
If "fetch --prune" is run with no new refs to fetch, but it has refs
to prune. Then, the header url is not printed as it would if there were
new refs to fetch.

Output before this patch:

	$ git fetch --prune remote-with-no-new-refs
	 x [deleted]         (none)     -&gt; origin/world

Output after this patch:

	$ git fetch --prune remote-with-no-new-refs
	From https://github.com/git/git
	 x [deleted]         (none)     -&gt; origin/test

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