git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
blob 97266cd326d45e11e7c705675307c0de39313b35 906 bytes (raw)
name: builtin/branch-diff.c 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
#include "cache.h"
#include "parse-options.h"

static const char * const builtin_branch_diff_usage[] = {
	N_("git rebase--helper [<options>] ( A..B C..D | A...B | base A B )"),
	NULL
};

#define COLOR_DUAL_MODE 2

static int parse_creation_weight(const struct option *opt, const char *arg,
				 int unset)
{
	double *d = opt->value;
	if (unset)
		*d = 0.6;
	else
		*d = atof(arg);
	return 0;
}

int cmd_branch_diff(int argc, const char **argv, const char *prefix)
{
	int no_patches = 0;
	double creation_weight = 0.6;
	struct option options[] = {
		OPT_BOOL(0, "no-patches", &no_patches,
			 N_("short format (no diffs)")),
		{ OPTION_CALLBACK,
			0, "creation-weight", &creation_weight, N_("factor"),
			N_("Fudge factor by which creation is weighted [0.6]"),
			0, parse_creation_weight },
		OPT_END()
	};

	argc = parse_options(argc, argv, NULL, options,
			builtin_branch_diff_usage, 0);

	return 0;
}

debug log:

solving 97266cd326d ...
found 97266cd326d in https://public-inbox.org/git/8bc517e35d4842f8d9d98f3b99adb9475d6db2d2.1525361419.git.johannes.schindelin@gmx.de/

applying [1/1] https://public-inbox.org/git/8bc517e35d4842f8d9d98f3b99adb9475d6db2d2.1525361419.git.johannes.schindelin@gmx.de/
diff --git a/builtin/branch-diff.c b/builtin/branch-diff.c
new file mode 100644
index 00000000000..97266cd326d

Checking patch builtin/branch-diff.c...
Applied patch builtin/branch-diff.c cleanly.

index at:
100644 97266cd326d45e11e7c705675307c0de39313b35	builtin/branch-diff.c

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).