mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-19 07:01:53 +02:00
37 lines
779 B
C
37 lines
779 B
C
/*
|
|
* git-hist.h - Retrieve revision history from GIT repo
|
|
*
|
|
* Written 2016 by Werner Almesberger
|
|
* Copyright 2016 by Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef GIT_HIST_H
|
|
#define GIT_HIST_H
|
|
|
|
#include <git2.h>
|
|
|
|
|
|
struct hist {
|
|
struct git_commit *commit;
|
|
|
|
unsigned branch; /* branch index */
|
|
|
|
struct hist **newer;
|
|
unsigned n_newer;
|
|
|
|
struct hist **older;
|
|
unsigned n_older;
|
|
};
|
|
|
|
|
|
struct hist *vcs_git_hist(const char *path);
|
|
const char *vcs_git_summary(struct hist *hist);
|
|
void dump_hist(struct hist *h);
|
|
|
|
#endif /* !GIT_HIST_H */
|