<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/fetch.c, branch v2.12.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.12.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.12.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-01-31T21:14:59Z</updated>
<entry>
<title>Merge branch 'js/remote-rename-with-half-configured-remote'</title>
<updated>2017-01-31T21:14:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-31T21:14:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fe575f06532bde1e672a2313fd76ef09b66fc355'/>
<id>urn:sha1:fe575f06532bde1e672a2313fd76ef09b66fc355</id>
<content type='text'>
With anticipatory tweaking for remotes defined in ~/.gitconfig
(e.g. "remote.origin.prune" set to true, even though there may or
may not actually be "origin" remote defined in a particular Git
repository), "git remote rename" and other commands misinterpreted
and behaved as if such a non-existing remote actually existed.

* js/remote-rename-with-half-configured-remote:
  remote rename: more carefully determine whether a remote is configured
  remote rename: demonstrate a bogus "remote exists" bug
</content>
</entry>
<entry>
<title>remote rename: more carefully determine whether a remote is configured</title>
<updated>2017-01-19T22:04:23Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-01-19T21:20:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e459b073fb3ab8abe36e6bee5c5d6be1ed3928ae'/>
<id>urn:sha1:e459b073fb3ab8abe36e6bee5c5d6be1ed3928ae</id>
<content type='text'>
One of the really nice features of the ~/.gitconfig file is that users
can override defaults by their own preferred settings for all of their
repositories.

One such default that some users like to override is whether the
"origin" remote gets auto-pruned or not. The user would simply call

	git config --global remote.origin.prune true

and from now on all "origin" remotes would be pruned automatically when
fetching into the local repository.

There is just one catch: now Git thinks that the "origin" remote is
configured, even if the repository config has no [remote "origin"]
section at all, as it does not realize that the "prune" setting was
configured globally and that there really is no "origin" remote
configured in this repository.

That is a problem e.g. when renaming a remote to a new name, when Git
may be fooled into thinking that there is already a remote of that new
name.

Let's fix this by paying more attention to *where* the remote settings
came from: if they are configured in the local repository config, we
must not overwrite them. If they were configured elsewhere, we cannot
overwrite them to begin with, as we only write the repository config.

There is only one caller of remote_is_configured() (in `git fetch`) that
may want to take remotes into account even if they were configured
outside the repository config; all other callers essentially try to
prevent the Git command from overwriting settings in the repository
config.

To accommodate that fact, the remote_is_configured() function now
requires a parameter that states whether the caller is interested in all
remotes, or only in those that were configured in the repository config.

Many thanks to Jeff King whose tireless review helped with settling for
nothing less than the current strategy.

This fixes https://github.com/git-for-windows/git/issues/888

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/fetch-no-redundant-tag-fetch-map'</title>
<updated>2017-01-10T23:24:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-10T23:24:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06cfa9f31004106f8214b766fa990d451b754b66'/>
<id>urn:sha1:06cfa9f31004106f8214b766fa990d451b754b66</id>
<content type='text'>
Code cleanup to avoid using redundant refspecs while fetching with
the --tags option.

* jt/fetch-no-redundant-tag-fetch-map:
  fetch: do not redundantly calculate tag refmap
</content>
</entry>
<entry>
<title>clone,fetch: explain the shallow-clone option a little more clearly</title>
<updated>2016-12-05T22:50:57Z</updated>
<author>
<name>Alex Henrie</name>
<email>alexhenrie24@gmail.com</email>
</author>
<published>2016-12-04T22:03:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d8738653297e839ae59ff3284c271681cc14396'/>
<id>urn:sha1:6d8738653297e839ae59ff3284c271681cc14396</id>
<content type='text'>
"deepen by excluding" does not make sense because excluding a revision
does not deepen a repository; it makes the repository more shallow.

Signed-off-by: Alex Henrie &lt;alexhenrie24@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch: do not redundantly calculate tag refmap</title>
<updated>2016-11-11T17:36:23Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2016-11-11T00:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6cc823c5c15911b27a410cfd47abc81cc10c0003'/>
<id>urn:sha1:6cc823c5c15911b27a410cfd47abc81cc10c0003</id>
<content type='text'>
builtin/fetch.c redundantly calculates refmaps for tags twice. Remove
the first calculation.

This is only a code simplification and slight performance improvement -
the result is unchanged, as the redundant refmaps are subsequently
removed by the invocation to "ref_remove_duplicates" anyway.

This was introduced in commit c5a84e9 ("fetch --tags: fetch tags *in
addition to* other stuff", 2013-10-29) when modifying the effect of the
--tags parameter to "git fetch". The refmap-for-tag calculation was
copied instead of moved.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/fetch-quick-tag-following' into maint</title>
<updated>2016-10-28T16:01:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-28T16:01:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=39000e849970a554a257577dcb2fb844a523a1d1'/>
<id>urn:sha1:39000e849970a554a257577dcb2fb844a523a1d1</id>
<content type='text'>
When fetching from a remote that has many tags that are irrelevant
to branches we are following, we used to waste way too many cycles
when checking if the object pointed at by a tag (that we are not
going to fetch!) exists in our repository too carefully.

* jk/fetch-quick-tag-following:
  fetch: use "quick" has_sha1_file for tag following
</content>
</entry>
<entry>
<title>Merge branch 'jc/abbrev-auto'</title>
<updated>2016-10-27T21:58:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-27T21:58:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f9db0c055c2f93021ee32a069e15b9e54f39f0da'/>
<id>urn:sha1:f9db0c055c2f93021ee32a069e15b9e54f39f0da</id>
<content type='text'>
"git push" and "git fetch" reports from what old object to what new
object each ref was updated, using abbreviated refnames, and they
attempt to align the columns for this and other pieces of
information.  The way these codepaths compute how many display
columns to allocate for the object names portion of this output has
been updated to match the recent "auto scale the default
abbreviation length" change.

* jc/abbrev-auto:
  transport: compute summary-width dynamically
  transport: allow summary-width to be computed dynamically
  fetch: pass summary_width down the callchain
  transport: pass summary_width down the callchain
</content>
</entry>
<entry>
<title>Merge branch 'lt/abbrev-auto'</title>
<updated>2016-10-27T21:58:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-27T21:58:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=580d820ece78100c5e2b8b5874d7aed5d76715f2'/>
<id>urn:sha1:580d820ece78100c5e2b8b5874d7aed5d76715f2</id>
<content type='text'>
Allow the default abbreviation length, which has historically been
7, to scale as the repository grows.  The logic suggests to use 12
hexdigits for the Linux kernel, and 9 to 10 for Git itself.

* lt/abbrev-auto:
  abbrev: auto size the default abbreviation
  abbrev: prepare for new world order
  abbrev: add FALLBACK_DEFAULT_ABBREV to prepare for auto sizing
</content>
</entry>
<entry>
<title>Merge branch 'jk/fetch-quick-tag-following'</title>
<updated>2016-10-26T20:14:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-26T20:14:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9fcd14491d32d76c3533ba0b1dfe7cabf31fe852'/>
<id>urn:sha1:9fcd14491d32d76c3533ba0b1dfe7cabf31fe852</id>
<content type='text'>
When fetching from a remote that has many tags that are irrelevant
to branches we are following, we used to waste way too many cycles
when checking if the object pointed at by a tag (that we are not
going to fetch!) exists in our repository too carefully.

* jk/fetch-quick-tag-following:
  fetch: use "quick" has_sha1_file for tag following
</content>
</entry>
<entry>
<title>transport: allow summary-width to be computed dynamically</title>
<updated>2016-10-21T22:28:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-21T22:28:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=11fd66de9bceac5ffb70ad3ad225203b95d19aa2'/>
<id>urn:sha1:11fd66de9bceac5ffb70ad3ad225203b95d19aa2</id>
<content type='text'>
Now we have identified three callchains that have a set of refs that
they want to show their &lt;old, new&gt; object names in an aligned output,
we can replace their reference to the constant TRANSPORT_SUMMARY_WIDTH
with a helper function call to transport_summary_width() that takes
the set of ref as a parameter.  This step does not yet iterate over
the refs and compute, which is left as an exercise to the readers.

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