diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-27 22:22:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-27 22:34:19 -0700 |
commit | b71ce7f3f13ebd0e212bdda82b012ee36df4f63f (patch) | |
tree | 770119a6f5ba788a15fd91b3ad29490b94a86e43 | |
parent | clone: make sure we support the transport type (diff) | |
parent | GIT 1.5.5.3 (diff) | |
download | tgif-b71ce7f3f13ebd0e212bdda82b012ee36df4f63f.tar.xz |
Merge 1.5.5.3 in
-rw-r--r-- | Documentation/RelNotes-1.5.5.3.txt | 12 | ||||
-rw-r--r-- | Documentation/git-bundle.txt | 2 | ||||
-rw-r--r-- | Documentation/git.txt | 3 | ||||
-rw-r--r-- | builtin-commit.c | 2 | ||||
-rwxr-xr-x | git-filter-branch.sh | 2 | ||||
-rwxr-xr-x | gitweb/gitweb.perl | 8 | ||||
-rwxr-xr-x | t/t7003-filter-branch.sh | 13 |
7 files changed, 24 insertions, 18 deletions
diff --git a/Documentation/RelNotes-1.5.5.3.txt b/Documentation/RelNotes-1.5.5.3.txt new file mode 100644 index 0000000000..f22f98b734 --- /dev/null +++ b/Documentation/RelNotes-1.5.5.3.txt @@ -0,0 +1,12 @@ +GIT v1.5.5.3 Release Notes +========================== + +Fixes since v1.5.5.2 +-------------------- + + * "git send-email --compose" did not notice that non-ascii contents + needed some MIME magic. + + * "git fast-export" did not export octopus merges correctly. + +Also comes with various documentation updates. diff --git a/Documentation/git-bundle.txt b/Documentation/git-bundle.txt index 505ac056e6..18330cdcd2 100644 --- a/Documentation/git-bundle.txt +++ b/Documentation/git-bundle.txt @@ -9,7 +9,7 @@ git-bundle - Move objects and refs by archive SYNOPSIS -------- [verse] -'git-bundle' create <file> [git-rev-list args] +'git-bundle' create <file> <git-rev-list args> 'git-bundle' verify <file> 'git-bundle' list-heads <file> [refname...] 'git-bundle' unbundle <file> [refname...] diff --git a/Documentation/git.txt b/Documentation/git.txt index 1f68dec541..7182bb7f7e 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -46,11 +46,12 @@ Documentation for older releases are available here: * link:v1.5.5/git.html[documentation for release 1.5.5] * release notes for + link:RelNotes-1.5.5.3.txt[1.5.5.3], link:RelNotes-1.5.5.2.txt[1.5.5.2], link:RelNotes-1.5.5.1.txt[1.5.5.1], link:RelNotes-1.5.5.txt[1.5.5]. -* link:v1.5.5.2/git.html[documentation for release 1.5.5.2] +* link:v1.5.5.3/git.html[documentation for release 1.5.5.3] * link:v1.5.4.5/git.html[documentation for release 1.5.4.5] diff --git a/builtin-commit.c b/builtin-commit.c index 07872c8ea7..b294c1f88c 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -223,6 +223,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix) if (interactive) { interactive_add(argc, argv, prefix); + if (read_cache() < 0) + die("index file corrupt"); commit_style = COMMIT_AS_IS; return get_index_file(); } diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 80e99e5394..d04c346e12 100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -234,7 +234,7 @@ case "$filter_subdir" in ;; *) git rev-list --reverse --topo-order --default HEAD \ - --parents --full-history "$@" -- "$filter_subdir" + --parents "$@" -- "$filter_subdir" esac > ../revs || die "Could not get the commits" commits=$(wc -l <../revs | tr -d " ") diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8308e2208e..57a19058a4 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2756,7 +2756,7 @@ sub git_print_page_nav { } sub format_paging_nav { - my ($action, $hash, $head, $page, $nrevs) = @_; + my ($action, $hash, $head, $page, $has_next_link) = @_; my $paging_nav; @@ -2774,7 +2774,7 @@ sub format_paging_nav { $paging_nav .= " ⋅ prev"; } - if ($nrevs >= (100 * ($page+1)-1)) { + if ($has_next_link) { $paging_nav .= " ⋅ " . $cgi->a({-href => href(-replay=>1, page=>$page+1), -accesskey => "n", -title => "Alt-n"}, "next"); @@ -4665,7 +4665,7 @@ sub git_log { my @commitlist = parse_commits($hash, 101, (100 * $page)); - my $paging_nav = format_paging_nav('log', $hash, $head, $page, (100 * ($page+1))); + my $paging_nav = format_paging_nav('log', $hash, $head, $page, $#commitlist >= 100); git_header_html(); git_print_page_nav('log','', $hash,undef,undef, $paging_nav); @@ -5585,7 +5585,7 @@ sub git_shortlog { my @commitlist = parse_commits($hash, 101, (100 * $page)); - my $paging_nav = format_paging_nav('shortlog', $hash, $head, $page, (100 * ($page+1))); + my $paging_nav = format_paging_nav('shortlog', $hash, $head, $page, $#commitlist >= 100); my $next_link = ''; if ($#commitlist >= 100) { $next_link = diff --git a/t/t7003-filter-branch.sh b/t/t7003-filter-branch.sh index 1e8a205e53..e26f726930 100755 --- a/t/t7003-filter-branch.sh +++ b/t/t7003-filter-branch.sh @@ -97,7 +97,7 @@ test_expect_success 'subdirectory filter result looks okay' ' test_must_fail git show sub:subdir ' -test_expect_success 'setup and filter history that requires --full-history' ' +test_expect_success 'more setup' ' git checkout master && mkdir subdir && echo A > subdir/new && @@ -107,16 +107,7 @@ test_expect_success 'setup and filter history that requires --full-history' ' git rm a && test_tick && git commit -m "again subdir on master" && - git merge branch && - git branch sub-master && - git-filter-branch -f --subdirectory-filter subdir sub-master -' - -test_expect_success 'subdirectory filter result looks okay' ' - test 3 = $(git rev-list -1 --parents sub-master | wc -w) && - git show sub-master^:new && - git show sub-master^2:new && - test_must_fail git show sub:subdir + git merge branch ' test_expect_success 'use index-filter to move into a subdirectory' ' |