<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-branch.sh, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-01-29T23:00:46Z</updated>
<entry>
<title>git-branch: Documentation fixes</title>
<updated>2006-01-29T23:00:46Z</updated>
<author>
<name>Fredrik Kuivinen</name>
<email>freku045@student.liu.se</email>
</author>
<published>2006-01-29T14:02:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=075dd8ee5417899c9f41b90f0dceecdf85433468'/>
<id>urn:sha1:075dd8ee5417899c9f41b90f0dceecdf85433468</id>
<content type='text'>
Signed-off-by: Fredrik Kuivinen &lt;freku045@student.liu.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Comment fixes.</title>
<updated>2005-12-17T07:32:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-17T07:12:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=01385e275828c1116ea9bfcf827f82f450ee8f5f'/>
<id>urn:sha1:01385e275828c1116ea9bfcf827f82f450ee8f5f</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Usage message clean-up, take #2</title>
<updated>2005-12-14T10:53:43Z</updated>
<author>
<name>Fredrik Kuivinen</name>
<email>freku045@student.liu.se</email>
</author>
<published>2005-12-11T09:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d025524d9d85b057c3caae68a8398eaf7ba3be1a'/>
<id>urn:sha1:d025524d9d85b057c3caae68a8398eaf7ba3be1a</id>
<content type='text'>
There were some problems with the usage message clean-up patch
series. I hadn't realised that subdirectory aware scripts can't source
git-sh-setup. I propose that we change this and let the scripts which
are subdirectory aware set a variable, SUBDIRECTORY_OK, before they
source git-sh-setup.

The scripts will also set USAGE and possibly LONG_USAGE before they
source git-sh-setup. If LONG_USAGE isn't set it defaults to USAGE.

If we go this way it's easy to catch --help in git-sh-setup, print the
(long) usage message to stdout and exit cleanly. git-sh-setup can
define a 'usage' shell function which can be called by the scripts to
print the short usage string to stderr and exit non-cleanly. It will
also be easy to change $0 to basename $0 or something else, if would
like to do that sometime in the future.

What follows is a patch to convert a couple of the commands to this
style. If it's ok with everyone to do it this way I will convert the
rest of the scripts too.

[jc: thrown in to proposed updates queue for comments.]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>define die() for scripts that use it.</title>
<updated>2005-11-29T07:13:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-28T07:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d165fa14f0a111dfc85d964ecc037d0b280cd54f'/>
<id>urn:sha1:d165fa14f0a111dfc85d964ecc037d0b280cd54f</id>
<content type='text'>
As a fallout from not using git-sh-setup in scripts that can
operate from a subdirectory, we lost definition of die() from
them.  It might make sense to do some cleanup to consolidate
them back again, but this should suffice for now.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>branch: make it operable from a subdirectory.</title>
<updated>2005-11-29T07:13:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-28T07:16:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9cc2527cd2943c82cf448dccec564869b0a762e6'/>
<id>urn:sha1:9cc2527cd2943c82cf448dccec564869b0a762e6</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: die if outside git repository.</title>
<updated>2005-11-25T21:49:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-24T08:12:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae2b0f15180d4b044828c836bcab6a990efa5c8e'/>
<id>urn:sha1:ae2b0f15180d4b044828c836bcab6a990efa5c8e</id>
<content type='text'>
Now all the users of this script detect its exit status and die,
complaining that it is outside git repository.  So move the code
that dies from all callers to git-sh-setup script.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-branch: -f to forcibly reset branch head.</title>
<updated>2005-11-18T23:53:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-11T19:12:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb777612f085fc42afd0ac6986ed8062f8b75cbd'/>
<id>urn:sha1:eb777612f085fc42afd0ac6986ed8062f8b75cbd</id>
<content type='text'>
A new usage, 'git-branch -f branch [start]', resets the branch head at
start (or current head).  Should be considered a dangerous operation,
but if you are like me to keep rewinding branches it is handy.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>allow git-update-ref create refs with slashes in names</title>
<updated>2005-11-15T01:15:32Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2005-11-14T22:10:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=08db81a9f1e4072790f0257f5398e8408e3d6816'/>
<id>urn:sha1:08db81a9f1e4072790f0257f5398e8408e3d6816</id>
<content type='text'>
Make git-update-ref create references with slashes in them. git-branch
and git-checkout already support such reference names.

git-branch can use git-update-ref to create the references in a more
formal manner now.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Do not fail on hierarchical branch names.</title>
<updated>2005-11-03T00:50:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-02T20:17:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=13d1cc3604a1a64cb5a6025bba8af8b74a373963'/>
<id>urn:sha1:13d1cc3604a1a64cb5a6025bba8af8b74a373963</id>
<content type='text'>
"git-checkout -b frotz/nitfol master" failed to create
$GIT_DIR/refs/heads/frotz/nitfol but went ahead and updated
$GIT_DIR/HEAD to point at it, resulting in a corrupt repository.
Exit when we cannot create the new branch with an error status.

While we are at it, there is no reason to forbid subdirectories
in refs/heads, so make sure we handle that correctly.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-check-ref-format: reject funny ref names.</title>
<updated>2005-10-15T18:23:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-10-14T01:57:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03feddd6e8e779086ac2d131ded325f8e5601653'/>
<id>urn:sha1:03feddd6e8e779086ac2d131ded325f8e5601653</id>
<content type='text'>
Update check_ref_format() function to reject ref names that:

 * has a path component that begins with a ".", or
 * has a double dots "..", or
 * has ASCII control character, "~", "^", ":" or SP, anywhere, or
 * ends with a "/".

Use it in 'git-checkout -b', 'git-branch', and 'git-tag' to make sure
that newly created refs are well-formed.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
