Git fork
1#ifndef FOR_EACH_REF_H
2#define FOR_EACH_REF_H
3
4struct repository;
5
6/*
7 * Shared usage string for options common to git-for-each-ref(1)
8 * and git-refs-list(1). The command-specific part (e.g., "git refs list ")
9 * must be prepended by the caller.
10 */
11#define COMMON_USAGE_FOR_EACH_REF \
12 "[--count=<count>] [--shell|--perl|--python|--tcl]\n" \
13 " [(--sort=<key>)...] [--format=<format>]\n" \
14 " [--include-root-refs] [--points-at=<object>]\n" \
15 " [--merged[=<object>]] [--no-merged[=<object>]]\n" \
16 " [--contains[=<object>]] [--no-contains[=<object>]]\n" \
17 " [(--exclude=<pattern>)...] [--start-after=<marker>]\n" \
18 " [ --stdin | (<pattern>...)]"
19
20/*
21 * The core logic for for-each-ref and its clones.
22 */
23int for_each_ref_core(int argc, const char **argv, const char *prefix,
24 struct repository *repo, const char *const *usage);
25
26#endif /* FOR_EACH_REF_H */