summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 14:31:09 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-27 14:31:09 -0300
commit51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c (patch)
tree89302eb49f2b32b8a9b0d1eeedfb28f871d42bb8 /main.c
parentb50be73df03140fd263119d39545b58d6954b561 (diff)
downloadeeshow-51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c.tar.gz
eeshow-51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c.tar.bz2
eeshow-51a4e4d928c2ab9563e3ab62a68d20a9f5de7b5c.zip
file/git-hist.c: introduce history descriptor to API, removing global "history"
This will be used for more things in the future.
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index fddd9fa..618efd5 100644
--- a/main.c
+++ b/main.c
@@ -223,10 +223,10 @@ int main(int argc, char **argv)
}
if (history) {
- struct hist *h;
+ struct history *vcs_history = vcs_git_history(history);
+ struct hist *h = vcs_head(vcs_history);
- h = vcs_git_hist(history);
- dump_hist(h);
+ dump_hist(vcs_history, h);
return 0;
}