<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git, branch v1.8.0.1</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=v1.8.0.1</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=v1.8.0.1'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2012-11-26T02:40:34Z</updated>
<entry>
<title>Git 1.8.0.1</title>
<updated>2012-11-26T02:40:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-26T02:40:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ed9fe755130891fc878bb2433204faffb534697b'/>
<id>urn:sha1:ed9fe755130891fc878bb2433204faffb534697b</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/checkout-out-of-unborn' into maint</title>
<updated>2012-11-26T02:35:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-26T02:35:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=5956732ebb4fe38d2fb0574004efabf76a8b2d10'/>
<id>urn:sha1:5956732ebb4fe38d2fb0574004efabf76a8b2d10</id>
<content type='text'>
* jk/checkout-out-of-unborn:
  checkout: print a message when switching unborn branches
</content>
</entry>
<entry>
<title>Merge branch 'cn/config-missing-path' into maint</title>
<updated>2012-11-26T02:35:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-26T02:35:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4'/>
<id>urn:sha1:ccf1bb3ab65f968b412b17cfdd9613b1d7bc61b4</id>
<content type='text'>
* cn/config-missing-path:
  config: don't segfault when given --path with a missing value
</content>
</entry>
<entry>
<title>Merge branch 'jk/maint-gitweb-xss' into maint</title>
<updated>2012-11-26T02:35:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-26T02:35:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=326922fd20edd1ad4651052f7e22abed89c5dc4e'/>
<id>urn:sha1:326922fd20edd1ad4651052f7e22abed89c5dc4e</id>
<content type='text'>
Fixes an XSS vulnerability in gitweb.

* jk/maint-gitweb-xss:
  gitweb: escape html in rss title
</content>
</entry>
<entry>
<title>Completion must sort before using uniq</title>
<updated>2012-11-25T06:35:48Z</updated>
<author>
<name>Marc Khouzam</name>
<email>marc.khouzam@gmail.com</email>
</author>
<published>2012-11-23T14:02:22Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=4db42b38231b350138dd6b9c67af34e028006380'/>
<id>urn:sha1:4db42b38231b350138dd6b9c67af34e028006380</id>
<content type='text'>
The user can be presented with invalid completion results
when trying to complete a 'git checkout' command.  This can happen
when using a branch name prefix that matches multiple remote branches.

For example, if available branches are:
  master
  remotes/GitHub/maint
  remotes/GitHub/master
  remotes/origin/maint
  remotes/origin/master

When performing completion on 'git checkout ma' the user will be
given the choices:
  maint
  master

However, 'git checkout maint' will fail in this case, although
completion previously said 'maint' was valid.  Furthermore, when
performing completion on 'git checkout mai', no choices will be
suggested.  So, the user is first told that the branch name
'maint' is valid, but when trying to complete 'mai' into 'maint',
that completion is no longer valid.

The completion results should never propose 'maint' as a valid
branch name, since 'git checkout' will refuse it.

The reason for this bug is that the uniq program only
works with sorted input.  The man page states
"uniq prints the unique lines in a sorted file".

When __git_refs uses the guess heuristic employed by checkout for
tracking branches it wants to consider remote branches but only if
the branch name is unique.  To do that, it calls 'uniq -u'.  However
the input given to 'uniq -u' is not sorted.

Therefore, in the above example, when dealing with 'git checkout ma',
"__git_refs '' 1" will find the following list:
  master
  maint
  master
  maint
  master

which, when passed to 'uniq -u' will remain the same.  Therefore
'maint' will be wrongly suggested as a valid option.

When dealing with 'git checkout mai', the list will be:
  maint
  maint

which happens to be sorted and will be emptied by 'uniq -u',
properly ignoring 'maint'.

A solution for preventing the completion script from suggesting
such invalid branch names is to first call 'sort' and then 'uniq -u'.

Signed-off-by: Marc Khouzam &lt;marc.khouzam@gmail.com&gt;
Reviewed-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Further preparation for 1.8.0.1</title>
<updated>2012-11-20T18:16:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-20T18:16:14Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1c03999bef32edabd3db6479279b3ef90cc635ca'/>
<id>urn:sha1:1c03999bef32edabd3db6479279b3ef90cc635ca</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mg/maint-pull-suggest-upstream-to' into maint</title>
<updated>2012-11-20T18:15:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-20T18:15:09Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=91d0cd9a6e7ec15af5b1b3796a040400d992b46b'/>
<id>urn:sha1:91d0cd9a6e7ec15af5b1b3796a040400d992b46b</id>
<content type='text'>
* mg/maint-pull-suggest-upstream-to:
  push/pull: adjust missing upstream help text to changed interface
</content>
</entry>
<entry>
<title>Merge branch 'mm/maint-doc-commit-edit' into maint</title>
<updated>2012-11-20T18:14:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-20T18:14:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cf48960b6dd5c0d8b8767fa0088bd166e619de57'/>
<id>urn:sha1:cf48960b6dd5c0d8b8767fa0088bd166e619de57</id>
<content type='text'>
* mm/maint-doc-commit-edit:
  Document 'git commit --no-edit' explicitly
</content>
</entry>
<entry>
<title>Merge branch 'as/maint-doc-fix-no-post-rewrite' into maint</title>
<updated>2012-11-20T18:14:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-20T18:14:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cdcd79321390b41df452c48c5ba9d1e4cc23a801'/>
<id>urn:sha1:cdcd79321390b41df452c48c5ba9d1e4cc23a801</id>
<content type='text'>
* as/maint-doc-fix-no-post-rewrite:
  commit: fixup misplacement of --no-post-rewrite description
</content>
</entry>
<entry>
<title>Merge branch 'rs/lock-correct-ref-during-delete' into maint</title>
<updated>2012-11-20T18:14:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-20T18:14:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c5afc5b73e33e47537936ef4bb738c9d8e2f1963'/>
<id>urn:sha1:c5afc5b73e33e47537936ef4bb738c9d8e2f1963</id>
<content type='text'>
* rs/lock-correct-ref-during-delete:
  refs: lock symref that is to be deleted, not its target
</content>
</entry>
</feed>
