<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/git-pull.sh, branch v1.8.0.2</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.0.2</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.0.2'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2012-10-25T09:32:11Z</updated>
<entry>
<title>git-pull: Avoid merge-base on detached head</title>
<updated>2012-10-25T09:32:11Z</updated>
<author>
<name>Phil Hord</name>
<email>hordp@cisco.com</email>
</author>
<published>2012-10-23T20:39:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=e980765c59c173e9a10ce1069c763645b87fd50c'/>
<id>urn:sha1:e980765c59c173e9a10ce1069c763645b87fd50c</id>
<content type='text'>
git pull --rebase does some clever tricks to find the base
for $upstream, but it forgets that we may not have any
branch at all.  When this happens, git merge-base reports its
"usage" help in the middle of an otherwise successful
rebase operation, because git-merge is called with one too
few parameters.

Since we do not need the merge-base trick in the case of a
detached HEAD, detect this condition and bypass the clever
trick and the usage noise.

Signed-off-by: Phil Hord &lt;hordp@cisco.com&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>Make git-{pull,rebase} message without tracking information friendlier</title>
<updated>2012-03-05T07:00:57Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@elego.de</email>
</author>
<published>2012-03-04T04:41:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=3c02396adc0d8836bccc4fbc95edbb3ca8c1f508'/>
<id>urn:sha1:3c02396adc0d8836bccc4fbc95edbb3ca8c1f508</id>
<content type='text'>
The current message is too long and at too low a level for anybody
to understand it if they don't know about the configuration format
already.

The text about setting up a remote is superfluous and doesn't help
understand or recover from the error that has happened.  Show the
usage more prominently and explain how to set up the tracking
information. If there is only one remote, that name is used instead
of the generic &lt;remote&gt;.

Also simplify the message we print on detached HEAD to remove
unnecessary information which is better left for the documentation.

Signed-off-by: Carlos Martín Nieto &lt;cmn@elego.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>"git pull" doesn't know "--edit"</title>
<updated>2012-02-13T03:24:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-02-11T18:21:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=8580830084c8917ac41d18e39dba276b237f598e'/>
<id>urn:sha1:8580830084c8917ac41d18e39dba276b237f598e</id>
<content type='text'>
Ok, so now "git merge" defaults to editing when interactive - lovely. But
when testing that, I noticed that while you can say

   git merge --[no-]edit ..branch..

that does not work with "git pull". You get a message like

  error: unknown option `no-edit'
  usage: git fetch [&lt;options&gt;] [&lt;repository&gt; [&lt;refspec&gt;...]]
     or: git fetch [&lt;options&gt;] &lt;group&gt;
     or: git fetch --multiple [&lt;options&gt;] [(&lt;repository&gt; | &lt;group&gt;)...]
     or: git fetch --all [&lt;options&gt;]

      -v, --verbose         be more verbose
      -q, --quiet           be more quiet
      --all                 fetch from all remotes
  ...

which is because that stupid shell script doesn't know about the new
flags, and just passes it to "git fetch" instead.

Now, I really wanted to just make "git pull" a built-in instead of that
nasty shell script, but I'm lazy. So here's the trivial updates to
git-pull.sh to at least teach it about -e/--edit/--no-edit.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/pull-rebase-config'</title>
<updated>2011-12-09T21:37:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-12-09T21:37:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=1ee740e66975adbab080301ebd364e253be3d513'/>
<id>urn:sha1:1ee740e66975adbab080301ebd364e253be3d513</id>
<content type='text'>
* ab/pull-rebase-config:
  pull: introduce a pull.rebase option to enable --rebase
</content>
</entry>
<entry>
<title>pull: introduce a pull.rebase option to enable --rebase</title>
<updated>2011-11-07T16:43:11Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2011-11-06T09:50:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6b37dff17f176d7e87efa93b4cf521dd725de247'/>
<id>urn:sha1:6b37dff17f176d7e87efa93b4cf521dd725de247</id>
<content type='text'>
Currently we either need to set branch.&lt;name&gt;.rebase for existing
branches if we'd like "git pull" to mean "git pull --rebase", or have
the forethought of setting "branch.autosetuprebase" before we create
the branch.

Introduce a "pull.rebase" option to globally configure "git pull" to
mean "git pull --rebase" for any branch.

This option will be considered at a lower priority than
branch.&lt;name&gt;.rebase, i.e. we could set pull.rebase=true and
branch.&lt;name&gt;.rebase=false and the latter configuration option would
win.

Reviewed-by: Sverre Rabbelier &lt;srabbelier@gmail.com&gt;
Reviewed-by: Fernando Vezzosi &lt;buccia@repnz.net&gt;
Reviewed-by: Eric Herman &lt;eric@freesa.org&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Liked-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 'jk/pull-rebase-with-work-tree'</title>
<updated>2011-10-18T04:37:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-18T04:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f2b516352527c6ddf338143e4ade0ef4713f85eb'/>
<id>urn:sha1:f2b516352527c6ddf338143e4ade0ef4713f85eb</id>
<content type='text'>
* jk/pull-rebase-with-work-tree:
  pull,rebase: handle GIT_WORK_TREE better

Conflicts:
	git-pull.sh
</content>
</entry>
<entry>
<title>pull,rebase: handle GIT_WORK_TREE better</title>
<updated>2011-10-13T19:16:36Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-10-13T15:59:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=035b5bf6431dbf8f3cde2f44b0d7ef893b95b605'/>
<id>urn:sha1:035b5bf6431dbf8f3cde2f44b0d7ef893b95b605</id>
<content type='text'>
You can't currently run git-pull or git-rebase from outside
of the work tree, even with GIT_WORK_TREE set, due to an
overeager require_work_tree function. Commit e2eb527
documents this problem and provides the infrastructure for a
fix, but left it to later commits to audit and update
individual scripts.

Changing these scripts to use require_work_tree_exists is
easy to verify. We immediately call cd_to_toplevel, anyway.
Therefore no matter which function we use, the state
afterwards is one of:

  1. We have a work tree, and we are at the top level.

  2. We don't have a work tree, and we have died.

The only catch is that we must also make sure no code that
ran before the cd_to_toplevel assumed that we were already
in the working tree.

In this case, we will only have included shell libraries and
called set_reflog_action, neither of which care about the
current working directory at all.

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>use -h for synopsis and --help for manpage consistently</title>
<updated>2011-10-05T17:47:10Z</updated>
<author>
<name>Clemens Buchacher</name>
<email>drizzd@aon.at</email>
</author>
<published>2011-10-03T18:21:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=87182b17ed471a7b9cbbc24e1c02f90c8725dc6f'/>
<id>urn:sha1:87182b17ed471a7b9cbbc24e1c02f90c8725dc6f</id>
<content type='text'>
A few scripted Porcelain implementations pretend as if the routine to show
their own help messages are triggered upon "git cmd --help", but a command
line parser of "git" will hijack such a request and shows the manpage for
the cmd subcommand.

Leaving the code to handle such input is simply misleading.

Signed-off-by: Clemens Buchacher &lt;drizzd@aon.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/i18n-scripts'</title>
<updated>2011-08-25T23:00:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-25T23:00:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=957450054cfbbe0d4ae8d33f7b74eace6e290f16'/>
<id>urn:sha1:957450054cfbbe0d4ae8d33f7b74eace6e290f16</id>
<content type='text'>
* js/i18n-scripts:
  submodule: take advantage of gettextln and eval_gettextln.
  stash: take advantage of eval_gettextln
  pull: take advantage of eval_gettextln
  git-am: take advantage of gettextln and eval_gettextln.
  gettext: add gettextln, eval_gettextln to encode common idiom
</content>
</entry>
<entry>
<title>Merge branch 'oa/pull-reflog'</title>
<updated>2011-08-08T19:33:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-08T19:33:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=1421fd9df4f1e3ed232bd1c683c6e264a464a41e'/>
<id>urn:sha1:1421fd9df4f1e3ed232bd1c683c6e264a464a41e</id>
<content type='text'>
* oa/pull-reflog:
  pull: remove extra space from reflog message

Conflicts:
	git-pull.sh
</content>
</entry>
</feed>
