mirror of
https://github.com/git/git.git
synced 2026-03-29 19:10:10 +02:00
Merge branch 'master' into next
* master: Change C99 comments to old-style C comments commit.txt: clarify how --author argument is used setup: document prefix
This commit is contained in:
@@ -95,10 +95,11 @@ OPTIONS
|
||||
read the message from the standard input.
|
||||
|
||||
--author=<author>::
|
||||
Override the author name used in the commit. You can use the
|
||||
standard `A U Thor <author@example.com>` format. Otherwise,
|
||||
an existing commit that matches the given string and its author
|
||||
name is used.
|
||||
Override the commit author. Specify an explicit author using the
|
||||
standard `A U Thor <author@example.com>` format. Otherwise <author>
|
||||
is assumed to be a pattern and is used to search for an existing
|
||||
commit by that author (i.e. rev-list --all -i --author=<author>);
|
||||
the commit author is then copied from the first such commit found.
|
||||
|
||||
--date=<date>::
|
||||
Override the author date used in the commit.
|
||||
|
||||
@@ -1591,7 +1591,7 @@ static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent)
|
||||
strcpy(hex, sha1_to_hex(suspect->commit->object.sha1));
|
||||
printf("%s%c%d %d %d\n",
|
||||
hex,
|
||||
ent->guilty ? ' ' : '*', // purely for debugging
|
||||
ent->guilty ? ' ' : '*', /* purely for debugging */
|
||||
ent->s_lno + 1,
|
||||
ent->lno + 1,
|
||||
ent->num_lines);
|
||||
|
||||
@@ -552,10 +552,10 @@ static void grab_values(struct atom_value *val, int deref, struct object *obj, v
|
||||
grab_person("committer", val, deref, obj, buf, sz);
|
||||
break;
|
||||
case OBJ_TREE:
|
||||
// grab_tree_values(val, deref, obj, buf, sz);
|
||||
/* grab_tree_values(val, deref, obj, buf, sz); */
|
||||
break;
|
||||
case OBJ_BLOB:
|
||||
// grab_blob_values(val, deref, obj, buf, sz);
|
||||
/* grab_blob_values(val, deref, obj, buf, sz); */
|
||||
break;
|
||||
default:
|
||||
die("Eh? Object of type %d?", obj->type);
|
||||
|
||||
2
remote.c
2
remote.c
@@ -478,7 +478,7 @@ static void read_config(void)
|
||||
unsigned char sha1[20];
|
||||
const char *head_ref;
|
||||
int flag;
|
||||
if (default_remote_name) // did this already
|
||||
if (default_remote_name) /* did this already */
|
||||
return;
|
||||
default_remote_name = xstrdup("origin");
|
||||
current_branch = NULL;
|
||||
|
||||
6
setup.c
6
setup.c
@@ -546,6 +546,12 @@ int check_repository_format(void)
|
||||
return check_repository_format_gently(NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the "prefix", a path to the current working directory
|
||||
* relative to the work tree root, or NULL, if the current working
|
||||
* directory is not a strict subdirectory of the work tree root. The
|
||||
* prefix always ends with a '/' character.
|
||||
*/
|
||||
const char *setup_git_directory(void)
|
||||
{
|
||||
const char *retval = setup_git_directory_gently(NULL);
|
||||
|
||||
Reference in New Issue
Block a user