Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  GIT 1.5.6.1
  fix update-hook-example to work with packed tag references
  clone: create intermediate directories of destination repo
  for-each-ref: implement missing tag values
  git-rebase.sh: Add check if rebase is in progress
  • Loading branch information
Junio C Hamano committed Jun 26, 2008
2 parents 3015fa5 + e636106 commit 41e98de
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 11 deletions.
28 changes: 28 additions & 0 deletions Documentation/RelNotes-1.5.6.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
GIT v1.5.6.1 Release Notes
==========================

Fixes since v1.5.6
------------------

* Last minute change broke loose object creation on AIX.

* (performance fix) We used to make $GIT_DIR absolute path early in the
programs but keeping it relative to the current directory internally
gives 1-3 per-cent performance boost.

* bash completion knows the new --graph option to git-log family.


* git-diff -c/--cc showed unnecessary "deletion" lines at the context
boundary.

* git-for-each-ref ignored %(object) and %(type) requests for tag
objects.

* git-merge usage had a typo.

* Rebuilding of git-svn metainfo database did not take rewriteRoot
option into account.

* Running "git-rebase --continue/--skip/--abort" before starting a
rebase gave nonsense error messages.
11 changes: 6 additions & 5 deletions Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ unreleased) version of git, that is available from 'master'
branch of the `git.git` repository.
Documentation for older releases are available here:

* link:v1.5.6/git.html[documentation for release 1.5.6]
* link:v1.5.6.1/git.html[documentation for release 1.5.6.1]

* release notes for
link:RelNotes-1.5.6.txt[1.5.6],
link:RelNotes-1.5.6.1.txt[1.5.6.1].
link:RelNotes-1.5.6.txt[1.5.6].

* link:v1.5.5/git.html[documentation for release 1.5.5]
* link:v1.5.5.4/git.html[documentation for release 1.5.5.4]

* release notes for
link:RelNotes-1.5.5.4.txt[1.5.5.4],
Expand All @@ -57,8 +58,6 @@ Documentation for older releases are available here:
link:RelNotes-1.5.5.1.txt[1.5.5.1],
link:RelNotes-1.5.5.txt[1.5.5].

* link:v1.5.5.4/git.html[documentation for release 1.5.5.4]

* link:v1.5.4.5/git.html[documentation for release 1.5.4.5]

* release notes for
Expand All @@ -82,6 +81,8 @@ Documentation for older releases are available here:
link:RelNotes-1.5.3.1.txt[1.5.3.1],
link:RelNotes-1.5.3.txt[1.5.3].

* link:v1.5.2.5/git.html[documentation for release 1.5.2.5]

* release notes for
link:RelNotes-1.5.2.5.txt[1.5.2.5],
link:RelNotes-1.5.2.4.txt[1.5.2.4],
Expand Down
2 changes: 1 addition & 1 deletion Documentation/howto/update-hook-example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function info {
# - Branches should only be fast-forwarded.
case "$1" in
refs/tags/*)
[ -f "$GIT_DIR/$1" ] &&
git rev-parse --verify -q "$1" &&
deny >/dev/null "You can't overwrite an existing tag"
;;
refs/heads/*)
Expand Down
2 changes: 1 addition & 1 deletion RelNotes
7 changes: 7 additions & 0 deletions builtin-for-each-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ static void grab_tag_values(struct atom_value *val, int deref, struct object *ob
name++;
if (!strcmp(name, "tag"))
v->s = tag->tag;
else if (!strcmp(name, "type") && tag->tagged)
v->s = typename(tag->tagged->type);
else if (!strcmp(name, "object") && tag->tagged) {
char *s = xmalloc(41);
strcpy(s, sha1_to_hex(tag->tagged->sha1));
v->s = s;
}
}
}

Expand Down
14 changes: 10 additions & 4 deletions git-rebase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ while test $# != 0
do
case "$1" in
--continue)
test -d "$dotest" -o -d .dotest ||
die "No rebase in progress?"

git diff-files --quiet --ignore-submodules || {
echo "You must edit all merge conflicts and then"
echo "mark them as resolved using git add"
Expand Down Expand Up @@ -178,6 +181,9 @@ do
exit
;;
--skip)
test -d "$dotest" -o -d .dotest ||
die "No rebase in progress?"

git reset --hard HEAD || exit $?
if test -d "$dotest"
then
Expand All @@ -203,16 +209,16 @@ do
exit
;;
--abort)
test -d "$dotest" -o -d .dotest ||
die "No rebase in progress?"

git rerere clear
if test -d "$dotest"
then
move_to_original_branch
elif test -d .dotest
then
else
dotest=.dotest
move_to_original_branch
else
die "No rebase in progress?"
fi
git reset --hard $(cat "$dotest/orig-head")
rm -r "$dotest"
Expand Down

0 comments on commit 41e98de

Please sign in to comment.