Replace deprecated dashed git commands in usage
PATCH 1/1 Replace deprecated dashed git commands in usage
Signed-off-by Alexander Potashev <[email protected]>
--- builtin-merge.c | 4 ++-- builtin-receive-pack.c | 2 +- builtin-verify-pack.c | 2 +- merge-index.c | 2 +- merge-tree.c | 2 +- mktag.c | 2 +- mktree.c | 2 +- patch-id.c | 2 +- unpack-file.c | 2 +- upload-pack.c | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-)
builtin-merge.c +2 -2
@@ -36,8 +36,8 @@ struct strategy { };static const char *const builtin_merge_usage[] = { -"git-merge [options] <remote>..." , -"git-merge [options] <msg> HEAD <remote>" , +"git merge [options] <remote>..." , +"git merge [options] <msg> HEAD <remote>" ,NULL };
builtin-receive-pack.c +1 -1
@@ -9,7 +9,7 @@#include "remote.h" #include "transport.h" -static const char receive_pack_usage[] ="git-receive-pack <git-dir>" ; +static const char receive_pack_usage[] ="git receive-pack <git-dir>" ;enum deny_action {DENY_IGNORE ,
builtin-verify-pack.c +1 -1
@@ -107,7 +107,7 @@ static int verify_one_pack(const char *path, int verbose)return err; } -static const char verify_pack_usage[] ="git-verify-pack [-v] <pack>..." ; +static const char verify_pack_usage[] ="git verify-pack [-v] <pack>..." ;int cmd_verify_pack (int argc,const char **argv,const char *prefix) {
merge-index.c +1 -1
@@ -91,7 +91,7 @@ int main(int argc, char **argv)signal (SIGCHLD ,SIG_DFL );if (argc <3 ) -usage ("git-merge-index [-o] [-q] <merge-program> (-a | [--] <filename>*)" ); +usage ("git merge-index [-o] [-q] <merge-program> (-a | [--] <filename>*)" );setup_git_directory ();read_cache ();
merge-tree.c +1 -1
@@ -3,7 +3,7 @@#include "xdiff-interface.h" #include "blob.h" -static const char merge_tree_usage[] ="git-merge-tree <base-tree> <branch1> <branch2>" ; +static const char merge_tree_usage[] ="git merge-tree <base-tree> <branch1> <branch2>" ;static int resolve_directories =1 ;struct merge_list {
mktag.c +1 -1
@@ -157,7 +157,7 @@ int main(int argc, char **argv)unsigned char result_sha1[20 ];if (argc !=1 ) -usage ("git-mktag < signaturefile" ); +usage ("git mktag < signaturefile" );setup_git_directory ();
mktree.c +1 -1
@@ -61,7 +61,7 @@ static void write_tree(unsigned char *sha1)write_sha1_file (buf.buf, buf.len, tree_type, sha1); } -static const char mktree_usage[] ="git-mktree [-z]" ; +static const char mktree_usage[] ="git mktree [-z]" ;int main (int ac,char **av) {
patch-id.c +1 -1
@@ -72,7 +72,7 @@ static void generate_id_list(void)flush_current_id (patchlen, sha1, &ctx); } -static const char patch_id_usage[] ="git-patch-id < patch" ; +static const char patch_id_usage[] ="git patch-id < patch" ;int main (int argc,char **argv) {
unpack-file.c +1 -1
@@ -26,7 +26,7 @@ int main(int argc, char **argv)unsigned char sha1[20 ];if (argc !=2 ) -usage ("git-unpack-file <sha1>" ); +usage ("git unpack-file <sha1>" );if (get_sha1 (argv[1 ], sha1))die ("Not a valid object name %s" , argv[1 ]);
upload-pack.c +1 -1
@@ -11,7 +11,7 @@#include "list-objects.h" #include "run-command.h" -static const char upload_pack_usage[] ="git-upload-pack [--strict] [--timeout=nn] <dir>" ; +static const char upload_pack_usage[] ="git upload-pack [--strict] [--timeout=nn] <dir>" ;/* bits #0..7 in revision.h, #8..10 in commit.c */ #define THEY_HAVE (1u << 11)
Signature · 1 line
1.6.0.6