<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-pull.sh, branch v1.7.0.5</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.0.5</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.0.5'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2010-03-20T14:25:02Z</updated>
<entry>
<title>pull: replace unnecessary sed invocation</title>
<updated>2010-03-20T14:25:02Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2010-03-18T05:10:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0d12e59f636b68964c80a82a58020d34a6cd5032'/>
<id>urn:sha1:0d12e59f636b68964c80a82a58020d34a6cd5032</id>
<content type='text'>
Getting the shortened branch name is as easy as using the shell's
parameter expansion.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pull: re-fix command line generation</title>
<updated>2010-01-24T18:11:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-24T18:11:27Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=7ecee3314fdafd8015fd14bfb76ae4b601acc25e'/>
<id>urn:sha1:7ecee3314fdafd8015fd14bfb76ae4b601acc25e</id>
<content type='text'>
14e5d40 (pull: Fix parsing of -X&lt;option&gt;, 2010-01-17) forgot that
merge_name needs to stay as a single non-interpolated string.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ap/merge-backend-opts'</title>
<updated>2010-01-21T04:28:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-21T04:28:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fcb2a7e4a3c7899a3432f5804889fa3ea5779220'/>
<id>urn:sha1:fcb2a7e4a3c7899a3432f5804889fa3ea5779220</id>
<content type='text'>
* ap/merge-backend-opts:
  Document that merge strategies can now take their own options
  Extend merge-subtree tests to test -Xsubtree=dir.
  Make "subtree" part more orthogonal to the rest of merge-recursive.
  pull: Fix parsing of -X&lt;option&gt;
  Teach git-pull to pass -X&lt;option&gt; to git-merge
  git merge -X&lt;option&gt;
  git-merge-file --ours, --theirs

Conflicts:
	git-compat-util.h
</content>
</entry>
<entry>
<title>pull: Fix parsing of -X&lt;option&gt;</title>
<updated>2010-01-18T06:46:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-18T06:31:38Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=14e5d40ca4f4f118fe03cbe5302309170b46096d'/>
<id>urn:sha1:14e5d40ca4f4f118fe03cbe5302309170b46096d</id>
<content type='text'>
As -X parameter can contain arbitrary $IFS characters, we need to
properly quote it from the shell while forming the command line.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Teach git-pull to pass -X&lt;option&gt; to git-merge</title>
<updated>2010-01-18T06:45:17Z</updated>
<author>
<name>Avery Pennarun</name>
<email>apenwarr@gmail.com</email>
</author>
<published>2009-11-26T02:23:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ee2c79552acceaa59a78518c6c084bd515606374'/>
<id>urn:sha1:ee2c79552acceaa59a78518c6c084bd515606374</id>
<content type='text'>
This needs the usual sq then eval trick to allow IFS characters
in the option.

Signed-off-by: Avery Pennarun &lt;apenwarr@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Be more user-friendly when refusing to do something because of conflict.</title>
<updated>2010-01-12T21:17:08Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2010-01-12T09:54:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d38a30df7dd54c5c6883af1de1a03ec7d523cee5'/>
<id>urn:sha1:d38a30df7dd54c5c6883af1de1a03ec7d523cee5</id>
<content type='text'>
Various commands refuse to run in the presence of conflicts (commit,
merge, pull, cherry-pick/revert). They all used to provide rough, and
inconsistant error messages.

A new variable advice.resolveconflict is introduced, and allows more
verbose messages, pointing the user to the appropriate solution.

For commit, the error message used to look like this:

$ git commit
foo.txt: needs merge
foo.txt: unmerged (c34a92682e0394bc0d6f4d4a67a8e2d32395c169)
foo.txt: unmerged (3afcd75de8de0bb5076942fcb17446be50451030)
foo.txt: unmerged (c9785d77b76dfe4fb038bf927ee518f6ae45ede4)
error: Error building trees

The "need merge" line is given by refresh_cache. We add the IN_PORCELAIN
option to make the output more consistant with the other porcelain
commands, and catch the error in return, to stop with a clean error
message. The next lines were displayed by a call to cache_tree_update(),
which is not reached anymore if we noticed the conflict.

The new output looks like:

U       foo.txt
fatal: 'commit' is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm &lt;file&gt;' as
appropriate to mark resolution and make a commit, or use 'git commit -a'.

Pull is slightly modified to abort immediately if $GIT_DIR/MERGE_HEAD
exists instead of waiting for merge to complain.

The behavior of merge and the test-case are slightly modified to reflect
the usual flow: start with conflicts, fix them, and afterwards get rid of
MERGE_HEAD, with different error messages at each stage.

Signed-off-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 '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>
</feed>
