diff options
author | Greg Price <price@mit.edu> | 2013-03-19 12:02:19 -0700 |
---|---|---|
committer | Greg Price <price@mit.edu> | 2013-03-31 15:33:22 -0700 |
commit | 06e6eab0e208966c1152fb13b54eec884e63f2aa (patch) | |
tree | c944d665f8789154cab18866fe3febd2c786e194 /tests-clar/revwalk | |
parent | 804c5f562736b164148e648d475d95298d6d49a8 (diff) | |
download | libgit2-06e6eab0e208966c1152fb13b54eec884e63f2aa.tar.gz |
revwalk tests: better diagram of example repo
The purported command output was already inaccurate, as the refs
aren't where it shows. In any event, the labels a reader of this
file really needs are the indices used in commit_sorting_*, to make
it possible to understand them by referring directly from those
arrays to the diagram rather than from the index arrays, to commit_ids,
to the diagram. Add those.
Signed-off-by: Greg Price <price@mit.edu>
Diffstat (limited to 'tests-clar/revwalk')
-rw-r--r-- | tests-clar/revwalk/basic.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests-clar/revwalk/basic.c b/tests-clar/revwalk/basic.c index 438ec0162..de529a9e2 100644 --- a/tests-clar/revwalk/basic.c +++ b/tests-clar/revwalk/basic.c @@ -1,15 +1,14 @@ #include "clar_libgit2.h" /* - $ git log --oneline --graph --decorate - * a4a7dce (HEAD, br2) Merge branch 'master' into br2 + * a4a7dce [0] Merge branch 'master' into br2 |\ - | * 9fd738e (master) a fourth commit - | * 4a202b3 a third commit - * | c47800c branch commit one + | * 9fd738e [1] a fourth commit + | * 4a202b3 [2] a third commit + * | c47800c [3] branch commit one |/ - * 5b5b025 another commit - * 8496071 testing + * 5b5b025 [5] another commit + * 8496071 [4] testing */ static const char *commit_head = "a4a7dce85cf63874e984719f4fdd239f5145052f"; |