From 88731e3c33124d28dcedf5df160a666fe12a55df Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Fri, 14 Jun 2019 12:34:37 +0200 Subject: 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. --- examples/common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/common.h') 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); -- cgit v1.2.1