Revision a0ebe573a516a1530a2c072e513fa7f529781dd0 authored by Adam Simpkins on 05 June 2008, 08:56:19 UTC, committed by Junio C Hamano on 06 June 2008, 16:23:09 UTC
This change teaches the graph API that only the first parent of each commit is interesting when "--first-parent" was specified. This change also consolidates the graph parent walking logic into two new internal functions, first_interesting_parent() and next_interesting_parent(). A simpler fix would have been to simply break at the end of the 2 existing for loops when graph->revs->first_parent_only is set. However, this change seems nicer, especially if we ever need to add any new loops over the parent list in the future. Signed-off-by: Adam Simpkins <adam@adamsimpkins.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b7d9681
File | Mode | Size |
---|---|---|
.gitignore | -rw-r--r-- | 47 bytes |
Git.pm | -rw-r--r-- | 29.1 KB |
Makefile | -rw-r--r-- | 1.0 KB |
Makefile.PL | -rw-r--r-- | 745 bytes |
private-Error.pm | -rw-r--r-- | 18.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...