From 159543e8317cd13611dc999efddd3a89c11c1229 Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Sat, 21 Sep 2013 16:51:45 +0100 Subject: [PATCH 1/2] remote doc: document long forms of set-head options "git remote set-head" has always supported --add and --delete as synonyms for the -a and -d option but forgot to document them. Signed-off-by: Philip Oakley Signed-off-by: Jonathan Nieder --- Documentation/git-remote.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index 9c3e3bf83a..2507c8bd91 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -13,7 +13,7 @@ SYNOPSIS 'git remote add' [-t ] [-m ] [-f] [--[no-]tags] [--mirror=] 'git remote rename' 'git remote remove' -'git remote set-head' (-a | -d | ) +'git remote set-head' (-a | --auto | -d | --delete | ) 'git remote set-branches' [--add] ... 'git remote set-url' [--push] [] 'git remote set-url --add' [--push] @@ -101,9 +101,9 @@ branch. For example, if the default branch for `origin` is set to `master`, then `origin` may be specified wherever you would normally specify `origin/master`. + -With `-d`, the symbolic ref `refs/remotes//HEAD` is deleted. +With `-d` or `--delete`, the symbolic ref `refs/remotes//HEAD` is deleted. + -With `-a`, the remote is queried to determine its `HEAD`, then the +With `-a` or `--auto`, the remote is queried to determine its `HEAD`, then the symbolic-ref `refs/remotes//HEAD` is set to the same branch. e.g., if the remote `HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will From e49c8f33ab8e401d5d8f308f83e2a2c756377ef1 Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Sat, 21 Sep 2013 16:51:46 +0100 Subject: [PATCH 2/2] remote set-head -h: add long options to synopsis Document --auto and --delete alongside their short forms -a and -d in the first line of 'git remote set-head -h' output. Signed-off-by: Philip Oakley Signed-off-by: Jonathan Nieder --- builtin/remote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/remote.c b/builtin/remote.c index 5e54d367b8..aa008a50a5 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -12,7 +12,7 @@ static const char * const builtin_remote_usage[] = { N_("git remote add [-t ] [-m ] [-f] [--tags|--no-tags] [--mirror=] "), N_("git remote rename "), N_("git remote remove "), - N_("git remote set-head (-a | -d | )"), + N_("git remote set-head (-a | --auto | -d | --delete |)"), N_("git remote [-v | --verbose] show [-n] "), N_("git remote prune [-n | --dry-run] "), N_("git remote [-v | --verbose] update [-p | --prune] [( | )...]"), @@ -39,7 +39,7 @@ static const char * const builtin_remote_rm_usage[] = { }; static const char * const builtin_remote_sethead_usage[] = { - N_("git remote set-head (-a | -d | )"), + N_("git remote set-head (-a | --auto | -d | --delete | )"), NULL };