<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-pull.sh, branch v1.6.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.6.6.3</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.6.3'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-12-09T06:47:09Z</updated>
<entry>
<title>Merge branch 'maint'</title>
<updated>2009-12-09T06:47:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-12-09T06:47:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ff86bdd5cac70850eea4791bea78efa19b228ebe'/>
<id>urn:sha1:ff86bdd5cac70850eea4791bea78efa19b228ebe</id>
<content type='text'>
* maint:
  add-interactive: fix deletion of non-empty files
  pull: clarify advice for the unconfigured error case
</content>
</entry>
<entry>
<title>Revert recent "git merge &lt;msg&gt; HEAD &lt;commit&gt;..." deprecation</title>
<updated>2009-12-08T23:26:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-12-08T23:21:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=77c29b4acae2f129f71e4856b8d0518982802d83'/>
<id>urn:sha1:77c29b4acae2f129f71e4856b8d0518982802d83</id>
<content type='text'>
This reverts commit c0ecb07048ce2123589a2f077d296e8cf29a9570 "git-pull.sh:
Fix call to git-merge for new command format" and

commit b81e00a965c62ca72a4b9db425ee173de147808d "git-merge: a deprecation
notice of the ancient command line syntax".

They caused a "git pull" (without any arguments, and without any local
commits---only to update to the other side) to warn that commit log
message is ignored because the merge resulted in a fast-forward.

Another possible solution is to add an extra option to "git merge" so that
"git pull" can tell it that the message given is not coming from the end
user (the canned message is passed just in case the merge resulted in a
non-ff and caused commit), but I think it is easier _not_ to deprecate the
old syntax.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pull: clarify advice for the unconfigured error case</title>
<updated>2009-12-03T18:04:27Z</updated>
<author>
<name>Jan Krüger</name>
<email>jk@jk.gs</email>
</author>
<published>2009-11-27T14:17:05Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=995fc2f7e17fab8dd59f31f25870a0823cdb6f27'/>
<id>urn:sha1:995fc2f7e17fab8dd59f31f25870a0823cdb6f27</id>
<content type='text'>
When pull --rebase fails because it cannot find what branch to
merge against, the error message implies we are trying to merge.
Say "rebase against" instead of "merge with" to avoid confusion.

The configuration suggested to remedy the situation uses a
confusing syntax, with variables specified in the dotted form
accepted by 'git config' but separated from their values by the
'=' delimiter used by config files.  Since the user will have to
edit this output anyway, it is more helpful to provide a config
file snippet to paste into an editor and modify.

Signed-off-by: Jan Krüger &lt;jk@jk.gs&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>git-pull.sh: Fix call to git-merge for new command format</title>
<updated>2009-12-02T18:42:48Z</updated>
<author>
<name>Horst H. von Brand</name>
<email>vonbrand@inf.utfsm.cl</email>
</author>
<published>2009-12-01T22:44:11Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c0ecb07048ce2123589a2f077d296e8cf29a9570'/>
<id>urn:sha1:c0ecb07048ce2123589a2f077d296e8cf29a9570</id>
<content type='text'>
Now "git merge &lt;msg&gt; HEAD" is officially deprecated, we should
clean our own use as well.

Signed-off-by: Horst H. von Brand &lt;vonbrand@inf.utfsm.cl&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'fc/doc-fast-forward'</title>
<updated>2009-11-16T00:41:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-16T00:41:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=4d8c3258880548510b1d23f0db517adb7dfd2486'/>
<id>urn:sha1:4d8c3258880548510b1d23f0db517adb7dfd2486</id>
<content type='text'>
* fc/doc-fast-forward:
  Use 'fast-forward' all over the place

Conflicts:
	builtin-merge.c
</content>
</entry>
<entry>
<title>Teach 'git merge' and 'git pull' the option --ff-only</title>
<updated>2009-10-30T23:02:26Z</updated>
<author>
<name>Björn Gustavsson</name>
<email>bgustavsson@gmail.com</email>
</author>
<published>2009-10-29T22:08:31Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=134748353b2a71a34f899c9b1326ccf7ae082412'/>
<id>urn:sha1:134748353b2a71a34f899c9b1326ccf7ae082412</id>
<content type='text'>
For convenience in scripts and aliases, add the option
--ff-only to only allow fast-forwards (and up-to-date,
despite the name).

Disallow combining --ff-only and --no-ff, since they
flatly contradict each other.

Allow all other options to be combined with --ff-only
(i.e. do not add any code to handle them specially),
including the following options:

* --strategy (one or more): As long as the chosen merge
  strategy results in up-to-date or fast-forward, the
  command will succeed.

* --squash: I cannot imagine why anyone would want to
  squash commits only if fast-forward is possible, but I
  also see no reason why it should not be allowed.

* --message: The message will always be ignored, but I see
  no need to explicitly disallow providing a redundant message.

Acknowledgements: I did look at Yuval Kogman's earlier
patch (107768 in gmane), mainly as shortcut to find my
way in the code, but I did not copy anything directly.

Signed-off-by: Björn Gustavsson &lt;bgustavsson@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Use 'fast-forward' all over the place</title>
<updated>2009-10-25T06:50:28Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2009-10-24T08:31:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a75d7b54097ef0d0945cbe673a9940d6c561f95c'/>
<id>urn:sha1:a75d7b54097ef0d0945cbe673a9940d6c561f95c</id>
<content type='text'>
It's a compound word.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pull: improve advice for unconfigured error case</title>
<updated>2009-10-09T18:22:43Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-10-05T19:35:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a8c9bef4e0b87e596f37ec238991b447c739dee9'/>
<id>urn:sha1:a8c9bef4e0b87e596f37ec238991b447c739dee9</id>
<content type='text'>
There are several reasons a git-pull invocation might not
have anything marked for merge:

  1. We're not on a branch, so there is no branch
     configuration.

  2. We're on a branch, but there is no configuration for
     this branch.

  3. We fetched from the configured remote, but the
     configured branch to merge didn't get fetched (either
     it doesn't exist, or wasn't part of the fetch refspec).

  4. We fetched from the non-default remote, but didn't
     specify a branch to merge. We can't use the configured
     one because it applies to the default remote.

  5. We fetched from a specified remote, and a refspec was
     given, but it ended up not fetching anything (this is
     actually hard to do; if the refspec points to a remote
     branch and it doesn't exist, then fetch will fail and
     we never make it to this code path. But if you provide
     a wildcard refspec like

       refs/bogus/*:refs/remotes/origin/*

     then you can see this failure).

We have handled (1) and (2) for some time. Recently, commit
a6dbf88 added code to handle case (3).

This patch handles cases (4) and (5), which previously just
fell under other cases, producing a confusing message.

While we're at it, let's rewrap the text for case (3), which
looks terribly ugly as it is.

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>git-pull: dead code removal</title>
<updated>2009-10-05T19:03:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-10-05T19:03:25Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=4973aa2286110fcedc0e8ff0da57c10509fb1a65'/>
<id>urn:sha1:4973aa2286110fcedc0e8ff0da57c10509fb1a65</id>
<content type='text'>
Back when a74b170 (git-pull: disallow implicit merging to detached HEAD,
2007-01-15) added this check, $? referred to the error status of reading
HEAD as a symbolic-ref; but cd67e4d (Teach 'git pull' about --rebase,
2007-11-28) moved the command away from where the check is, and nobody
noticed the breakage.  Ever since, $? has always been 0 (tr at the end of
the pipe to find merge_head never fails) and other case arms were never
reached.

These days, error_on_no_merge_candidates function is prepared to handle a
detached HEAD case, which was what the code this patch removes used to
handle.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pull: Clarify "helpful" message for another corner case</title>
<updated>2009-09-23T05:26:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-09-13T20:38:48Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a6dbf8814f433a7fbfa9cde6333c98019f6db1e4'/>
<id>urn:sha1:a6dbf8814f433a7fbfa9cde6333c98019f6db1e4</id>
<content type='text'>
When the remote branch we asked for merging did not exist in the set of
fetched refs, we unconditionally hinted that it was because of lack of
configuration.  It is not necessarily so, and risks sending users for a
wild goose chase.

Make sure to check if that is indeed the case before telling a wild guess
to the user.

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