<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-pull.sh, branch v1.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.9.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.9.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2014-01-17T20:04:29Z</updated>
<entry>
<title>Merge branch 'jk/pull-rebase-using-fork-point'</title>
<updated>2014-01-17T20:04:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-01-17T20:04:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d8cf714c0edf261a2bcc126fc240b10ed04a5b8d'/>
<id>urn:sha1:d8cf714c0edf261a2bcc126fc240b10ed04a5b8d</id>
<content type='text'>
Finishing touches so that an expected error message will not leak to
the UI.

* jk/pull-rebase-using-fork-point:
  pull: suppress error when no remoteref is found
</content>
</entry>
<entry>
<title>pull: suppress error when no remoteref is found</title>
<updated>2014-01-17T20:03:32Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2014-01-17T20:00:20Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ffc2b483dee43c2687088d4c73d7532fda855050'/>
<id>urn:sha1:ffc2b483dee43c2687088d4c73d7532fda855050</id>
<content type='text'>
Commit 48059e4 (pull: use merge-base --fork-point when appropriate,
2013-12-08) incorrectly assumes that get_remote_merge_branch will either
yield a non-empty string or return an error, but there are circumstances
where it will yield an empty string.

The previous code then invoked git-rev-list with no arguments, which
results in an error suppressed by redirecting stderr to /dev/null.  Now
we invoke git-merge-base with an empty branch name, which also results
in an error.  Suppress this in the same way.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/pull-rebase-using-fork-point'</title>
<updated>2013-12-27T22:58:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-12-27T22:58:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2b0a564e02528e006d23e3318d0d2869fb239425'/>
<id>urn:sha1:2b0a564e02528e006d23e3318d0d2869fb239425</id>
<content type='text'>
* jk/pull-rebase-using-fork-point:
  rebase: use reflog to find common base with upstream
  pull: use merge-base --fork-point when appropriate
</content>
</entry>
<entry>
<title>pull: use merge-base --fork-point when appropriate</title>
<updated>2013-12-09T21:05:20Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-12-08T12:47:25Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=48059e405028ebf8a09c5a9aede89dfb460cce98'/>
<id>urn:sha1:48059e405028ebf8a09c5a9aede89dfb460cce98</id>
<content type='text'>
Since commit d96855f (merge-base: teach "--fork-point" mode, 2013-10-23)
we can replace a shell loop in git-pull with a single call to
git-merge-base.  So let's do so.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch --tags: fetch tags *in addition to* other stuff</title>
<updated>2013-10-30T21:16:36Z</updated>
<author>
<name>Michael Haggerty</name>
<email>mhagger@alum.mit.edu</email>
</author>
<published>2013-10-30T05:32:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c5a84e92a2fe9e8748e32341c344d7a6c0f52a50'/>
<id>urn:sha1:c5a84e92a2fe9e8748e32341c344d7a6c0f52a50</id>
<content type='text'>
Previously, fetch's "--tags" option was considered equivalent to
specifying the refspec "refs/tags/*:refs/tags/*" on the command line;
in particular, it caused the remote.&lt;name&gt;.refspec configuration to be
ignored.

But it is not very useful to fetch tags without also fetching other
references, whereas it *is* quite useful to be able to fetch tags *in
addition to* other references.  So change the semantics of this option
to do the latter.

If a user wants to fetch *only* tags, then it is still possible to
specifying an explicit refspec:

    git fetch &lt;remote&gt; 'refs/tags/*:refs/tags/*'

Please note that the documentation prior to 1.8.0.3 was ambiguous
about this aspect of "fetch --tags" behavior.  Commit

    f0cb2f137c 2012-12-14 fetch --tags: clarify documentation

made the documentation match the old behavior.  This commit changes
the documentation to match the new behavior.

Signed-off-by: Michael Haggerty &lt;mhagger@alum.mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'fc/trivial'</title>
<updated>2013-09-17T18:42:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-09-17T18:42:34Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c8ccfc9cdf3381525cce718c846bc62fd86767f7'/>
<id>urn:sha1:c8ccfc9cdf3381525cce718c846bc62fd86767f7</id>
<content type='text'>
* fc/trivial:
  pull: use $curr_branch_short more
  add: trivial style cleanup
  reset: trivial style cleanup
  branch: trivial style fix
  reset: trivial refactoring
</content>
</entry>
<entry>
<title>pull: use $curr_branch_short more</title>
<updated>2013-09-08T18:39:30Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2013-09-08T15:21:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b07f7296080b20f5cc2069ce2761cacdd79b3432'/>
<id>urn:sha1:b07f7296080b20f5cc2069ce2761cacdd79b3432</id>
<content type='text'>
One of the first things git-pull.sh does is setting $curr_branch to
the target of HEAD and $curr_branch_short to the same but with the
leading "refs/heads/" removed.  Simplify the code by using
$curr_branch_short instead of setting $curr_branch to the same
shortened value.

The only other use of $curr_branch in that function doesn't have to
be replaced with $curr_branch_short because it just checks if the
string is empty.  That property is the same with or without the prefix
unless HEAD points to "refs/heads/" alone, which is invalid.

Noticed-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pull: allow pull to preserve merges when rebasing</title>
<updated>2013-09-04T19:45:48Z</updated>
<author>
<name>Stephen Haberman</name>
<email>stephen@exigencecorp.com</email>
</author>
<published>2013-08-13T03:43:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=66713ef3b00933755cdeff1ae823dda7b5843640'/>
<id>urn:sha1:66713ef3b00933755cdeff1ae823dda7b5843640</id>
<content type='text'>
If a user is working on master, and has merged in their feature branch, but now
has to "git pull" because master moved, with pull.rebase their feature branch
will be flattened into master.

This is because "git pull" currently does not know about rebase's preserve
merges flag, which would avoid this behavior, as it would instead replay just
the merge commit of the feature branch onto the new master, and not replay each
individual commit in the feature branch.

Add a --rebase=preserve option, which will pass along --preserve-merges to
rebase.

Also add 'preserve' to the allowed values for the pull.rebase config setting.

Signed-off-by: Stephen Haberman &lt;stephen@exigencecorp.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/pull-to-integrate'</title>
<updated>2013-07-12T19:04:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-07-12T19:04:06Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5b307e95e880b95eafd36e93251c6638c222dcf4'/>
<id>urn:sha1:5b307e95e880b95eafd36e93251c6638c222dcf4</id>
<content type='text'>
* jk/pull-to-integrate:
  pull: change the description to "integrate" changes
  push: avoid suggesting "merging" remote changes
</content>
</entry>
<entry>
<title>pull: change the description to "integrate" changes</title>
<updated>2013-07-08T19:44:01Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2013-07-07T19:02:15Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=153d7265ef1277c1c9971780ad035a530e305f78'/>
<id>urn:sha1:153d7265ef1277c1c9971780ad035a530e305f78</id>
<content type='text'>
Since git-pull learned the --rebase option it has not just been about
merging changes from a remote repository (where "merge" is in the sense
of "git merge").  Change the description to use "integrate" instead of
"merge" in order to reflect this.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
