summaryrefslogtreecommitdiff
path: root/examples/common.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-14 12:34:37 +0200
committerPatrick Steinhardt <ps@pks.im>2019-07-20 19:10:57 +0200
commit88731e3c33124d28dcedf5df160a666fe12a55df (patch)
tree87cfc396dc0064e45306ec90a7d750707ea766aa /examples/common.h
parent1f44079cae42864cb51d98ca57f5d1f4d8296693 (diff)
downloadlibgit2-88731e3c33124d28dcedf5df160a666fe12a55df.tar.gz
examples: implement git-stash example
Implement a new example that resembles the git-stash(1) command. Right now, it only provides the apply, list, save and pop subcommands without any options. This example is mostly used to test libgit2's stashing performance on big repositories.
Diffstat (limited to 'examples/common.h')
-rw-r--r--examples/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/common.h b/examples/common.h
index 724a5c04f..dcc662d23 100644
--- a/examples/common.h
+++ b/examples/common.h
@@ -55,6 +55,7 @@ extern int lg2_remote(git_repository *repo, int argc, char **argv);
extern int lg2_rev_list(git_repository *repo, int argc, char **argv);
extern int lg2_rev_parse(git_repository *repo, int argc, char **argv);
extern int lg2_show_index(git_repository *repo, int argc, char **argv);
+extern int lg2_stash(git_repository *repo, int argc, char **argv);
extern int lg2_status(git_repository *repo, int argc, char **argv);
extern int lg2_tag(git_repository *repo, int argc, char **argv);