Skip to content

Commit 43f9f05

Browse files
committed
Merge branch 'maint'
* maint: pull: do not display fetch usage on --help-all git-tag.txt: list all modes in the description commit,status: describe -u likewise add: describe --patch like checkout, reset commit,merge,tag: describe -m likewise clone,init: describe --template using the same wording commit,status: describe --porcelain just like push commit,tag: use same wording for -F configure: use AC_LANG_PROGRAM consistently string_list_append: always set util pointer to NULL correct type of EMPTY_TREE_SHA1_BIN
2 parents 4e363b1 + 24231e0 commit 43f9f05

File tree

15 files changed

+49
-63
lines changed

15 files changed

+49
-63
lines changed

Documentation/git-tag.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,22 @@ SYNOPSIS
1818
DESCRIPTION
1919
-----------
2020

21-
Adds a tag reference in `.git/refs/tags/`.
21+
Add a tag reference in `.git/refs/tags/`, unless `-d/-l/-v` is given
22+
to delete, list or verify tags.
2223

23-
Unless `-f` is given, the tag must not yet exist in
24+
Unless `-f` is given, the tag to be created must not yet exist in the
2425
`.git/refs/tags/` directory.
2526

2627
If one of `-a`, `-s`, or `-u <key-id>` is passed, the command
27-
creates a 'tag' object, and requires the tag message. Unless
28+
creates a 'tag' object, and requires a tag message. Unless
2829
`-m <msg>` or `-F <file>` is given, an editor is started for the user to type
2930
in the tag message.
3031

3132
If `-m <msg>` or `-F <file>` is given and `-a`, `-s`, and `-u <key-id>`
3233
are absent, `-a` is implied.
3334

34-
Otherwise just the SHA1 object name of the commit object is
35-
written (i.e. a lightweight tag).
35+
Otherwise just a tag reference for the SHA1 object name of the commit object is
36+
created (i.e. a lightweight tag).
3637

3738
A GnuPG signed tag object will be created when `-s` or `-u
3839
<key-id>` is used. When `-u <key-id>` is not used, the

aclocal.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ AC_DEFUN([TYPE_SOCKLEN_T],
1313
git_cv_socklen_t_equiv=
1414
for arg2 in "struct sockaddr" void; do
1515
for t in int size_t unsigned long "unsigned long"; do
16-
AC_TRY_COMPILE([
16+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
1717
#include <sys/types.h>
1818
#include <sys/socket.h>
1919
2020
int getpeername (int, $arg2 *, $t *);
2121
],[
2222
$t len;
2323
getpeername(0,0,&len);
24-
],[
24+
])],[
2525
git_cv_socklen_t_equiv="$t"
2626
break 2
2727
])

builtin/add.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static struct option builtin_add_options[] = {
317317
OPT__VERBOSE(&verbose, "be verbose"),
318318
OPT_GROUP(""),
319319
OPT_BOOLEAN('i', "interactive", &add_interactive, "interactive picking"),
320-
OPT_BOOLEAN('p', "patch", &patch_interactive, "interactive patching"),
320+
OPT_BOOLEAN('p', "patch", &patch_interactive, "select hunks interactively"),
321321
OPT_BOOLEAN('e', "edit", &edit_interactive, "edit current diff and apply"),
322322
OPT__FORCE(&ignored_too, "allow adding otherwise ignored files"),
323323
OPT_BOOLEAN('u', "update", &take_worktree_changes, "update tracked files"),

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static int merge_working_tree(struct checkout_opts *opts,
404404
topts.dir->exclude_per_dir = ".gitignore";
405405
tree = parse_tree_indirect(old->commit ?
406406
old->commit->object.sha1 :
407-
(unsigned char *)EMPTY_TREE_SHA1_BIN);
407+
EMPTY_TREE_SHA1_BIN);
408408
init_tree_desc(&trees[0], tree->buffer, tree->size);
409409
tree = parse_tree_indirect(new->commit->object.sha1);
410410
init_tree_desc(&trees[1], tree->buffer, tree->size);

builtin/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ static struct option builtin_clone_options[] = {
6868
"initialize submodules in the clone"),
6969
OPT_BOOLEAN(0, "recurse-submodules", &option_recursive,
7070
"initialize submodules in the clone"),
71-
OPT_STRING(0, "template", &option_template, "path",
72-
"path the template repository"),
71+
OPT_STRING(0, "template", &option_template, "template-directory",
72+
"directory from which templates will be used"),
7373
OPT_STRING(0, "reference", &option_reference, "repo",
7474
"reference repository"),
7575
OPT_STRING('o', "origin", &option_origin, "branch",

builtin/commit.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ static struct option builtin_commit_options[] = {
118118
OPT__VERBOSE(&verbose, "show diff in commit message template"),
119119

120120
OPT_GROUP("Commit message options"),
121-
OPT_FILENAME('F', "file", &logfile, "read log from file"),
121+
OPT_FILENAME('F', "file", &logfile, "read message from file"),
122122
OPT_STRING(0, "author", &force_author, "AUTHOR", "override author for commit"),
123123
OPT_STRING(0, "date", &force_date, "DATE", "override date for commit"),
124-
OPT_CALLBACK('m', "message", &message, "MESSAGE", "specify commit message", opt_parse_m),
124+
OPT_CALLBACK('m', "message", &message, "MESSAGE", "commit message", opt_parse_m),
125125
OPT_STRING('c', "reedit-message", &edit_message, "COMMIT", "reuse and edit message from specified commit"),
126126
OPT_STRING('C', "reuse-message", &use_message, "COMMIT", "reuse message from specified commit"),
127127
OPT_STRING(0, "fixup", &fixup_message, "COMMIT", "use autosquash formatted message to fixup specified commit"),
@@ -145,12 +145,12 @@ static struct option builtin_commit_options[] = {
145145
STATUS_FORMAT_SHORT),
146146
OPT_BOOLEAN(0, "branch", &status_show_branch, "show branch information"),
147147
OPT_SET_INT(0, "porcelain", &status_format,
148-
"show porcelain output format", STATUS_FORMAT_PORCELAIN),
148+
"machine-readable output", STATUS_FORMAT_PORCELAIN),
149149
OPT_BOOLEAN('z', "null", &null_termination,
150150
"terminate entries with NUL"),
151151
OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
152152
OPT_BOOLEAN(0, "no-post-rewrite", &no_post_rewrite, "bypass post-rewrite hook"),
153-
{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
153+
{ OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no. (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
154154
/* end commit contents options */
155155

156156
{ OPTION_BOOLEAN, 0, "allow-empty", &allow_empty, NULL,
@@ -1092,7 +1092,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
10921092
OPT_BOOLEAN('b', "branch", &status_show_branch,
10931093
"show branch information"),
10941094
OPT_SET_INT(0, "porcelain", &status_format,
1095-
"show porcelain output format",
1095+
"machine-readable output",
10961096
STATUS_FORMAT_PORCELAIN),
10971097
OPT_BOOLEAN('z', "null", &null_termination,
10981098
"terminate entries with NUL"),

builtin/init-db.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
419419
unsigned int flags = 0;
420420
const struct option init_db_options[] = {
421421
OPT_STRING(0, "template", &template_dir, "template-directory",
422-
"provide the directory from which templates will be used"),
422+
"directory from which templates will be used"),
423423
OPT_SET_INT(0, "bare", &is_bare_repository_cfg,
424424
"create a bare repository", 1),
425425
{ OPTION_CALLBACK, 0, "shared", &init_shared_repository,

builtin/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ static struct option builtin_merge_options[] = {
194194
"merge strategy to use", option_parse_strategy),
195195
OPT_CALLBACK('X', "strategy-option", &xopts, "option=value",
196196
"option for selected merge strategy", option_parse_x),
197-
OPT_CALLBACK('m', "message", &merge_msg, "message",
198-
"message to be used for the merge commit (if any)",
197+
OPT_CALLBACK('m', "message", &merge_msg, "MESSAGE",
198+
"merge commit message (for a non-fast-forward merge)",
199199
option_parse_message),
200200
OPT__VERBOSITY(&verbosity),
201201
OPT_BOOLEAN(0, "abort", &abort_current_merge,

builtin/tag.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
376376
OPT_GROUP("Tag creation options"),
377377
OPT_BOOLEAN('a', NULL, &annotate,
378378
"annotated tag, needs a message"),
379-
OPT_CALLBACK('m', NULL, &msg, "msg",
380-
"message for the tag", parse_msg_arg),
381-
OPT_FILENAME('F', NULL, &msgfile, "message in a file"),
379+
OPT_CALLBACK('m', NULL, &msg, "MESSAGE",
380+
"tag message", parse_msg_arg),
381+
OPT_FILENAME('F', NULL, &msgfile, "read message from file"),
382382
OPT_BOOLEAN('s', NULL, &sign, "annotated and GPG-signed tag"),
383383
OPT_STRING('u', NULL, &keyid, "key-id",
384384
"use another key to sign the tag"),

cache.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,11 @@ static inline void hashclr(unsigned char *hash)
676676

677677
#define EMPTY_TREE_SHA1_HEX \
678678
"4b825dc642cb6eb9a060e54bf8d69288fbee4904"
679-
#define EMPTY_TREE_SHA1_BIN \
679+
#define EMPTY_TREE_SHA1_BIN_LITERAL \
680680
"\x4b\x82\x5d\xc6\x42\xcb\x6e\xb9\xa0\x60" \
681681
"\xe5\x4b\xf8\xd6\x92\x88\xfb\xee\x49\x04"
682+
#define EMPTY_TREE_SHA1_BIN \
683+
((const unsigned char *) EMPTY_TREE_SHA1_BIN_LITERAL)
682684

683685
int git_mkstemp(char *path, size_t n, const char *template);
684686

0 commit comments

Comments
 (0)