summaryrefslogtreecommitdiff
path: root/index.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-29 23:24:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-02 03:47:26 (GMT)
commit884944239f2ab673cedfaa5e7999d31fd6a46331 (patch)
treecf455590eb913746c71465066c8c08f82bc04f36 /index.c
parent2d497115129bd84790f2c1cc8cf91f1598c9094a (diff)
downloadgit-884944239f2ab673cedfaa5e7999d31fd6a46331.zip
git-884944239f2ab673cedfaa5e7999d31fd6a46331.tar.gz
git-884944239f2ab673cedfaa5e7999d31fd6a46331.tar.bz2
rev-list: omit duplicated parents.
Showing the same parent more than once for a commit does not make much sense downstream, so stop it. This can happen with an incorrectly made merge commit that merges the same parent twice, but can happen in an otherwise sane development history while squishing the history by taking into account only commits that touch specified paths. For example, $ git rev-list --max-count=1 --parents addafaf -- rev-list.c would have to show this commit ancestry graph: .---o---. / \ .---*---o---. / 93b74bc \ ---*---o---o-----o---o-----o addafaf d8f6b34 \ / .---o---o---. \ / .---*---. 3815f42 where 5 independent development tracks, only two of which have changes in the specified paths since they forked. The last change for the other three development tracks was done by the same commit before they forked, and we were showing that three times. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'index.c')
0 files changed, 0 insertions, 0 deletions