<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/refs.h, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-04-13T16:36:44Z</updated>
<entry>
<title>shorten_unambiguous_ref(): add strict mode</title>
<updated>2009-04-13T16:36:44Z</updated>
<author>
<name>Bert Wesarg</name>
<email>bert.wesarg@googlemail.com</email>
</author>
<published>2009-04-13T10:25:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e7b3309d356077337b8222683a743c27fa7276c'/>
<id>urn:sha1:6e7b3309d356077337b8222683a743c27fa7276c</id>
<content type='text'>
Add the strict mode of abbreviation to shorten_unambiguous_ref(), i.e. the
resulting ref won't trigger the ambiguous ref warning.

All users of shorten_unambiguous_ref() still use the loose mode.

Signed-off-by: Bert Wesarg &lt;bert.wesarg@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/show-upstream'</title>
<updated>2009-04-12T23:46:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-12T23:46:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e52effcf6efa9ef27b3d67d13f535a0381e3bf2'/>
<id>urn:sha1:3e52effcf6efa9ef27b3d67d13f535a0381e3bf2</id>
<content type='text'>
* jk/show-upstream:
  branch: show upstream branch when double verbose
  make get_short_ref a public function
  for-each-ref: add "upstream" format field
  for-each-ref: refactor refname handling
  for-each-ref: refactor get_short_ref function
</content>
</entry>
<entry>
<title>make get_short_ref a public function</title>
<updated>2009-04-08T06:22:15Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-04-07T07:14:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7c2b3029df45a74d0ebd11afcc94259791cfb90d'/>
<id>urn:sha1:7c2b3029df45a74d0ebd11afcc94259791cfb90d</id>
<content type='text'>
Often we want to shorten a full ref name to something "prettier"
to show a user. For example, "refs/heads/master" is often shown
simply as "master", or "refs/remotes/origin/master" is shown as
"origin/master".

Many places in the code use a very simple formula: skip common
prefixes like refs/heads, refs/remotes, etc. This is codified in
the prettify_ref function.

for-each-ref has a more correct (but more expensive) approach:
consider the ref lookup rules, and try shortening as much as
possible while remaining unambiguous.

This patch makes the latter strategy globally available as
shorten_unambiguous_ref.

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>Merge branch 'cc/sha1-bsearch' into HEAD</title>
<updated>2009-04-05T06:04:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-05T06:04:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5aaa507b067ca22324c34308cb56bcb64392a5db'/>
<id>urn:sha1:5aaa507b067ca22324c34308cb56bcb64392a5db</id>
<content type='text'>
* cc/sha1-bsearch: (95 commits)
  patch-ids: use the new generic "sha1_pos" function to lookup sha1
  sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1
  Update draft release notes to 1.6.3
  GIT 1.6.2.2
  send-email: ensure quoted addresses are rfc2047 encoded
  send-email: correct two tests which were going interactive
  Documentation: git-svn: fix trunk/fetch svn-remote key typo
  Mailmap: Allow empty email addresses to be mapped
  Cleanup warning about known issues in cvsimport documentation
  Documentation: Remove an odd "instead"
  send-email: ask_default should apply to all emails, not just the first
  send-email: don't attempt to prompt if tty is closed
  fix portability problem with IS_RUN_COMMAND_ERR
  Documentation: use "spurious .sp" XSLT if DOCBOOK_SUPPRESS_SP is set
  mailmap: resurrect lower-casing of email addresses
  builtin-clone.c: no need to strdup for setenv
  builtin-clone.c: make junk_pid static
  git-svn: add a double quiet option to hide git commits
  Update draft release notes to 1.6.2.2
  Documentation: push.default applies to all remotes
  ...
</content>
</entry>
<entry>
<title>refs: add "for_each_ref_in" function to refactor "for_each_*_ref" functions</title>
<updated>2009-03-30T08:22:53Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-03-30T03:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a8177b63d39503b182248b04ffcc75e3495754c'/>
<id>urn:sha1:2a8177b63d39503b182248b04ffcc75e3495754c</id>
<content type='text'>
The "for_each_{tag,branch,remote,replace,}_ref" functions are
redefined in terms of "for_each_ref_in" so that we can lose the
hardcoded length of prefix strings from the code.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
</content>
</entry>
<entry>
<title>Use a common function to get the pretty name of refs</title>
<updated>2009-03-09T22:41:16Z</updated>
<author>
<name>Daniel Barkalow</name>
<email>barkalow@iabervon.org</email>
</author>
<published>2009-03-09T01:06:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a9c37a72c4fbc8537de294d66b05bdfd7f9a4016'/>
<id>urn:sha1:a9c37a72c4fbc8537de294d66b05bdfd7f9a4016</id>
<content type='text'>
The result should be consistent between fetch and push, so we ought to
use the same code in both cases, even though it's short.

Signed-off-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote prune: warn dangling symrefs</title>
<updated>2009-02-11T06:26:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-09T07:27:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f8948e2fbc7fbd63e81006408965e3e89380bfaa'/>
<id>urn:sha1:f8948e2fbc7fbd63e81006408965e3e89380bfaa</id>
<content type='text'>
If you prune from the remote "frotz" that deleted the ref your tracking
branch remotes/frotz/HEAD points at, the symbolic ref will become
dangling.  We used to detect this as an error condition and issued a
message every time refs are enumerated.

This stops the error message, but moves the warning to "remote prune".

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Introduce for_each_recent_reflog_ent().</title>
<updated>2009-01-20T06:18:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-20T06:18:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=101d15e09712a0183db99d228d975c62970654cf'/>
<id>urn:sha1:101d15e09712a0183db99d228d975c62970654cf</id>
<content type='text'>
This can be used to scan only the last few kilobytes of a reflog, as a
cheap optimization when the data you are looking for is likely to be
found near the end of it.  The caller is expected to fall back to the
full scan if that is not the case.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Allow for having for_each_ref() list extra refs</title>
<updated>2008-05-05T00:41:44Z</updated>
<author>
<name>Daniel Barkalow</name>
<email>barkalow@iabervon.org</email>
</author>
<published>2008-04-27T17:39:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e142a3c61d22c3a3c081cb2c693e4d3725c21522'/>
<id>urn:sha1:e142a3c61d22c3a3c081cb2c693e4d3725c21522</id>
<content type='text'>
These refs can be anything, but they are most likely useful as
pointing to objects that you know are in the object database but don't
have any regular refs for. For example, when cloning with --reference,
the refs in this repository should be listed as objects that we have,
even though we don't have refs in our newly-created repository for
them yet.

Signed-off-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs.c: make close_ref() and commit_ref() non-static</title>
<updated>2008-02-23T06:57:38Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-02-22T18:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=435fc8523fd3a625acfeebffe433f1f7516ab9e2'/>
<id>urn:sha1:435fc8523fd3a625acfeebffe433f1f7516ab9e2</id>
<content type='text'>
This is in preparation to the reflog-expire changes which will
allow updating the ref after expiring the reflog.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
