329
struct tmp_objdir *remerge_objdir;
330
};
331
332
-int ref_excluded(struct string_list *, const char *path);
333
-void clear_ref_exclusion(struct string_list **);
334
-void add_ref_exclusion(struct string_list **, const char *exclude);
335
-
336
-
337
-#define REV_TREE_SAME 0
338
-#define REV_TREE_NEW 1 /* Only new files */
339
-#define REV_TREE_OLD 2 /* Only files removed */
340
-#define REV_TREE_DIFFERENT 3 /* Mixed changes */
341
-
342
-/* revision.c */
343
-typedef void (*show_early_output_fn_t)(struct rev_info *, struct commit_list *);
344
-extern volatile show_early_output_fn_t show_early_output;
345
-
346
-struct setup_revision_opt {
347
- const char *def;
348
- void (*tweak)(struct rev_info *, struct setup_revision_opt *);
349
- unsigned int assume_dashdash:1,
350
- allow_exclude_promisor_objects:1;
351
- unsigned revarg_opt;
352
-};
353
-
354
-#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
355
-#define init_revisions(revs, prefix) repo_init_revisions(the_repository, revs, prefix)
356
-#endif
357
-
332
/**
333
* Initialize a rev_info structure with default values. The third parameter may
334
* be NULL or can be prefix path, and then the `.prefix` variable will be set
340
void repo_init_revisions(struct repository *r,
341
struct rev_info *revs,
342
const char *prefix);
343
+#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
344
+#define init_revisions(revs, prefix) repo_init_revisions(the_repository, revs, prefix)
345
+#endif
346
347
/**
348
* Parse revision information, filling in the `rev_info` structure, and
351
* head of the argument list. The last parameter is used in case no
352
* parameter given by the first two arguments.
353
*/
354
+struct setup_revision_opt {
355
+ const char *def;
356
+ void (*tweak)(struct rev_info *, struct setup_revision_opt *);
357
+ unsigned int assume_dashdash:1,
358
+ allow_exclude_promisor_objects:1;
359
+ unsigned revarg_opt;
360
+};
361
int setup_revisions(int argc, const char **argv, struct rev_info *revs,
362
struct setup_revision_opt *);
363
407
408
void show_object_with_name(FILE *, struct object *, const char *);
409
410
+/**
411
+ * Helpers to check if a "struct string_list" item matches with
412
+ * wildmatch().
413
+ */
414
+int ref_excluded(struct string_list *, const char *path);
415
+void clear_ref_exclusion(struct string_list **);
416
+void add_ref_exclusion(struct string_list **, const char *exclude);
417
+
418
/**
419
* This function can be used if you want to add commit objects as revision
420
* information. You can use the `UNINTERESTING` object flag to indicate if
470
*/
471
struct commit_list *get_saved_parents(struct rev_info *revs, const struct commit *commit);
472
473
+/**
474
+ * Global for the (undocumented) "--early-output" flag for "git log".
475
+ */
476
+typedef void (*show_early_output_fn_t)(struct rev_info *, struct commit_list *);
477
+extern volatile show_early_output_fn_t show_early_output;
478
+
479
#endif