Skip to content

Commit 2ee13a7

Browse files
committed
Merge branch 'jk/cached-commit-buffer' into HEAD
* jk/cached-commit-buffer: revision: drop --show-all option commit: drop uses of get_cached_commit_buffer() Git 2.16.2
2 parents 7d4bebf + f74bbc8 commit 2ee13a7

File tree

6 files changed

+31
-46
lines changed

6 files changed

+31
-46
lines changed

Documentation/RelNotes/2.16.2.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Git v2.16.2 Release Notes
2+
=========================
3+
4+
Fixes since v2.16.1
5+
-------------------
6+
7+
* An old regression in "git describe --all $annotated_tag^0" has been
8+
fixed.
9+
10+
* "git svn dcommit" did not take into account the fact that a
11+
svn+ssh:// URL with a username@ (typically used for pushing) refers
12+
to the same SVN repository without the username@ and failed when
13+
svn.pushmergeinfo option is set.
14+
15+
* "git merge -Xours/-Xtheirs" learned to use our/their version when
16+
resolving a conflicting updates to a symbolic link.
17+
18+
* "git clone $there $here" is allowed even when here directory exists
19+
as long as it is an empty directory, but the command incorrectly
20+
removed it upon a failure of the operation.
21+
22+
* "git stash -- <pathspec>" incorrectly blew away untracked files in
23+
the directory that matched the pathspec, which has been corrected.
24+
25+
* "git add -p" was taught to ignore local changes to submodules as
26+
they do not interfere with the partial addition of regular changes
27+
anyway.
28+
29+
30+
Also contains various documentation updates and code clean-ups.

builtin/rev-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void show_commit(struct commit *commit, void *data)
134134
else
135135
putchar('\n');
136136

137-
if (revs->verbose_header && get_cached_commit_buffer(commit, NULL)) {
137+
if (revs->verbose_header) {
138138
struct strbuf buf = STRBUF_INIT;
139139
struct pretty_print_context ctx = {0};
140140
ctx.abbrev = revs->abbrev;

log-tree.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,6 @@ void show_log(struct rev_info *opt)
659659
show_mergetag(opt, commit);
660660
}
661661

662-
if (!get_cached_commit_buffer(commit, NULL))
663-
return;
664-
665662
if (opt->show_notes) {
666663
int raw;
667664
struct strbuf notebuf = STRBUF_INIT;

revision.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,14 +1065,9 @@ static int limit_list(struct rev_info *revs)
10651065
return -1;
10661066
if (obj->flags & UNINTERESTING) {
10671067
mark_parents_uninteresting(commit);
1068-
if (revs->show_all)
1069-
p = &commit_list_insert(commit, p)->next;
10701068
slop = still_interesting(list, date, slop, &interesting_cache);
10711069
if (slop)
10721070
continue;
1073-
/* If showing all, add the whole pending list to the end */
1074-
if (revs->show_all)
1075-
*p = list;
10761071
break;
10771072
}
10781073
if (revs->min_age != -1 && (commit->date > revs->min_age))
@@ -1864,8 +1859,6 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
18641859
revs->dense = 1;
18651860
} else if (!strcmp(arg, "--sparse")) {
18661861
revs->dense = 0;
1867-
} else if (!strcmp(arg, "--show-all")) {
1868-
revs->show_all = 1;
18691862
} else if (!strcmp(arg, "--in-commit-order")) {
18701863
revs->tree_blobs_in_commit_order = 1;
18711864
} else if (!strcmp(arg, "--remove-empty")) {
@@ -3094,8 +3087,6 @@ enum commit_action get_commit_action(struct rev_info *revs, struct commit *commi
30943087
return commit_ignore;
30953088
if (revs->unpacked && has_sha1_pack(commit->object.oid.hash))
30963089
return commit_ignore;
3097-
if (revs->show_all)
3098-
return commit_show;
30993090
if (commit->object.flags & UNINTERESTING)
31003091
return commit_ignore;
31013092
if (revs->min_age != -1 &&
@@ -3194,7 +3185,6 @@ enum commit_action simplify_commit(struct rev_info *revs, struct commit *commit)
31943185
enum commit_action action = get_commit_action(revs, commit);
31953186

31963187
if (action == commit_show &&
3197-
!revs->show_all &&
31983188
revs->prune && revs->dense && want_ancestry(revs)) {
31993189
/*
32003190
* --full-diff on simplified parents is no good: it

revision.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ struct rev_info {
9090
unsigned int dense:1,
9191
prune:1,
9292
no_walk:2,
93-
show_all:1,
9493
remove_empty_trees:1,
9594
simplify_history:1,
9695
topo_order:1,

t/t6015-rev-list-show-all-parents.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)