<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/refs.h, branch v1.7.7.4</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.7.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.7.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2011-08-18T00:35:38Z</updated>
<entry>
<title>Merge branch 'js/ref-namespaces'</title>
<updated>2011-08-18T00:35:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-18T00:35:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6ed547b53b90bebd2371b086b83b416b22b243b2'/>
<id>urn:sha1:6ed547b53b90bebd2371b086b83b416b22b243b2</id>
<content type='text'>
* js/ref-namespaces:
  ref namespaces: tests
  ref namespaces: documentation
  ref namespaces: Support remote repositories via upload-pack and receive-pack
  ref namespaces: infrastructure
  Fix prefix handling in ref iteration functions
</content>
</entry>
<entry>
<title>ref namespaces: infrastructure</title>
<updated>2011-07-06T18:19:24Z</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2011-07-05T17:54:44Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a1bea2c1fc5e5243e873919248940dd5fff593a4'/>
<id>urn:sha1:a1bea2c1fc5e5243e873919248940dd5fff593a4</id>
<content type='text'>
Add support for dividing the refs of a single repository into multiple
namespaces, each of which can have its own branches, tags, and HEAD.
Git can expose each namespace as an independent repository to pull from
and push to, while sharing the object store, and exposing all the refs
to operations such as git-gc.

Storing multiple repositories as namespaces of a single repository
avoids storing duplicate copies of the same objects, such as when
storing multiple branches of the same source.  The alternates mechanism
provides similar support for avoiding duplicates, but alternates do not
prevent duplication between new objects added to the repositories
without ongoing maintenance, while namespaces do.

To specify a namespace, set the GIT_NAMESPACE environment variable to
the namespace.  For each ref namespace, git stores the corresponding
refs in a directory under refs/namespaces/.  For example,
GIT_NAMESPACE=foo will store refs under refs/namespaces/foo/.  You can
also specify namespaces via the --namespace option to git.

Note that namespaces which include a / will expand to a hierarchy of
namespaces; for example, GIT_NAMESPACE=foo/bar will store refs under
refs/namespaces/foo/refs/namespaces/bar/.  This makes paths in
GIT_NAMESPACE behave hierarchically, so that cloning with
GIT_NAMESPACE=foo/bar produces the same result as cloning with
GIT_NAMESPACE=foo and cloning from that repo with GIT_NAMESPACE=bar.  It
also avoids ambiguity with strange namespace paths such as
foo/refs/heads/, which could otherwise generate directory/file conflicts
within the refs directory.

Add the infrastructure for ref namespaces: handle the GIT_NAMESPACE
environment variable and --namespace option, and support iterating over
refs in a namespace.

Signed-off-by: Josh Triplett &lt;josh@joshtriplett.org&gt;
Signed-off-by: Jamey Sharp &lt;jamey@minilop.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-1.7.3-checkout-describe'</title>
<updated>2011-06-30T00:03:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-06-30T00:03:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=b985f2aecaa6358b55d545385d0624d76ff83fb8'/>
<id>urn:sha1:b985f2aecaa6358b55d545385d0624d76ff83fb8</id>
<content type='text'>
* jc/maint-1.7.3-checkout-describe:
  checkout -b &lt;name&gt;: correctly detect existing branch
</content>
</entry>
<entry>
<title>checkout -b &lt;name&gt;: correctly detect existing branch</title>
<updated>2011-06-06T05:17:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-06-06T05:17:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c17b229454ac3f5d20fd0cff3a663b03c13cb38e'/>
<id>urn:sha1:c17b229454ac3f5d20fd0cff3a663b03c13cb38e</id>
<content type='text'>
When create a new branch, we fed "refs/heads/&lt;proposed name&gt;" as a string
to get_sha1() and expected it to fail when a branch already exists.

The right way to check if a ref exists is to check with resolve_ref().

A naïve solution that might appear attractive but does not work is to
forbid slashes in get_describe_name() but that will not work. A describe
name is is in the form of "ANYTHING-g&lt;short sha1&gt;", and that ANYTHING part
comes from a original tag name used in the repository the user ran the
describe command. A sick user could have a confusing hierarchical tag
whose name is "refs/heads/foobar" (stored as refs/tags/refs/heads/foobar")
to generate a describe name "refs/heads/foobar-6-g02ac983", and we should
be able to use that name to refer to the object whose name is 02ac983.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>setup_revisions(): Allow walking history in a submodule</title>
<updated>2010-07-07T16:48:33Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2010-07-07T13:39:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=9ef6aeb09ffe0650ca86dca53de93fd85333b02d'/>
<id>urn:sha1:9ef6aeb09ffe0650ca86dca53de93fd85333b02d</id>
<content type='text'>
By passing the path to a submodule in opt-&gt;submodule, the function can
be used to walk history in the named submodule repository, instead of
the toplevel repository.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>log_ref_setup: don't return stack-allocated array</title>
<updated>2010-06-12T16:34:17Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2010-06-10T12:54:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=157aaea5fff7dbf2fc39829d827b35df647562a4'/>
<id>urn:sha1:157aaea5fff7dbf2fc39829d827b35df647562a4</id>
<content type='text'>
859c301 (refs: split log_ref_write logic into log_ref_setup,
2010-05-21) refactors the stack allocation of the log_file array into
the new log_ref_setup() function, but passes it back to the caller.

Since the original intent seems to have been to split the work between
log_ref_setup and log_ref_write, make it the caller's responsibility
to allocate the buffer.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Reported-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refs: split log_ref_write logic into log_ref_setup</title>
<updated>2010-06-02T18:17:46Z</updated>
<author>
<name>Erick Mattos</name>
<email>erick.mattos@gmail.com</email>
</author>
<published>2010-05-22T00:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=859c30175f7d8f64f61968cb3ece7aca9218b314'/>
<id>urn:sha1:859c30175f7d8f64f61968cb3ece7aca9218b314</id>
<content type='text'>
Separation of the logic for testing and preparing the reflogs from
function log_ref_write to a new non static new function: log_ref_setup.

This allows to be performed from outside the first all reasonable checks
and procedures for writing reflogs.

Signed-off-by: Erick Mattos &lt;erick.mattos@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Support showing notes from more than one notes tree</title>
<updated>2010-03-13T05:55:39Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2010-03-12T17:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=894a9d333e9e2015cad00d95250b7c5d3acea8b6'/>
<id>urn:sha1:894a9d333e9e2015cad00d95250b7c5d3acea8b6</id>
<content type='text'>
With this patch, you can set notes.displayRef to a glob that points at
your favourite notes refs, e.g.,

[notes]
	displayRef = refs/notes/*

Then git-log and friends will show notes from all trees.

Thanks to Junio C Hamano for lots of feedback, which greatly
influenced the design of the entire series and this commit in
particular.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Acked-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rev-parse --branches/--tags/--remotes=pattern</title>
<updated>2010-01-20T20:30:25Z</updated>
<author>
<name>Ilari Liusvaara</name>
<email>ilari.liusvaara@elisanet.fi</email>
</author>
<published>2010-01-20T09:48:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=b09fe971dea73ff6f5296ce533a566114b23ca4e'/>
<id>urn:sha1:b09fe971dea73ff6f5296ce533a566114b23ca4e</id>
<content type='text'>
Since local branch, tags and remote tracking branch namespaces are
most often used, add shortcut notations for globbing those in
manner similar to --glob option.

With this, one can express the "what I have but origin doesn't?"
as:

'git log --branches --not --remotes=origin'

Original-idea-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Ilari Liusvaara &lt;ilari.liusvaara@elisanet.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rev-parse --glob</title>
<updated>2010-01-20T20:29:05Z</updated>
<author>
<name>Ilari Liusvaara</name>
<email>ilari.liusvaara@elisanet.fi</email>
</author>
<published>2010-01-20T09:48:25Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=d08bae7e221727e26baab984b792854b842130d7'/>
<id>urn:sha1:d08bae7e221727e26baab984b792854b842130d7</id>
<content type='text'>
Add --glob=&lt;glob-pattern&gt; option to rev-parse and everything that
accepts its options. This option matches all refs that match given
shell glob pattern (complete with some DWIM logic).

Example:

'git log --branches --not --glob=remotes/origin'

To show what you have that origin doesn't.

Signed-off-by: Ilari Liusvaara &lt;ilari.liusvaara@elisanet.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
