summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-15 05:19:38 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-15 05:42:31 (GMT)
commit8e8f998739db6526fe890fabc88c866759bc2ac3 (patch)
treeab1091575785a148714afb3c37e86fefcb418e2b /revision.c
parentcd2bdc5309461034e5cc58e1d3e87535ed9e093b (diff)
downloadgit-8e8f998739db6526fe890fabc88c866759bc2ac3.zip
git-8e8f998739db6526fe890fabc88c866759bc2ac3.tar.gz
git-8e8f998739db6526fe890fabc88c866759bc2ac3.tar.bz2
Fix up default abbrev in setup_revisions() argument parser.
The default abbreviation precision should be DEFAULT_ABBREV as before. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index 1d26e0d..bdf8005 100644
--- a/revision.c
+++ b/revision.c
@@ -475,7 +475,12 @@ static void handle_all(struct rev_info *revs, unsigned flags)
void init_revisions(struct rev_info *revs)
{
+ unsigned abbrev = revs->abbrev;
+
memset(revs, 0, sizeof(*revs));
+
+ revs->abbrev = abbrev;
+ revs->ignore_merges = 1;
revs->pruning.recursive = 1;
revs->pruning.add_remove = file_add_remove;
revs->pruning.change = file_change;