* [PATCH 0/2] Update 'git remote set-head' doc and uasage
@ 2013-09-21 15:51 Philip Oakley
2013-09-21 15:51 ` [PATCH 1/2] Doc: remote set-head long options Philip Oakley
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Philip Oakley @ 2013-09-21 15:51 UTC (permalink / raw)
To: GitList; +Cc: Junio C Hamano
In Junio's recent patch series ([PATCH v3 0/7] Removing the guesswork
of HEAD in "clone" $gmane/234950), his first patch updated t5505: 'fix
"set-head --auto with ambiguous HEAD" test'.
A quick look at the git remote man page showed that --auto was not
documented, nor listed in usage stings.
This two patch series fixes the documentation and the usage strings.
Philip Oakley (2):
Doc: remote set-head long options
remote set-head: show long options in usage
Documentation/git-remote.txt | 6 +++---
builtin/remote.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
--
1.8.1.msysgit.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] Doc: remote set-head long options
2013-09-21 15:51 [PATCH 0/2] Update 'git remote set-head' doc and uasage Philip Oakley
@ 2013-09-21 15:51 ` Philip Oakley
2013-09-21 15:51 ` [PATCH 2/2] remote set-head: show long options in usage Philip Oakley
2013-09-27 23:52 ` [PATCH 0/2] Update 'git remote set-head' doc and uasage Jonathan Nieder
2 siblings, 0 replies; 4+ messages in thread
From: Philip Oakley @ 2013-09-21 15:51 UTC (permalink / raw)
To: GitList; +Cc: Junio C Hamano
Signed-off-by: Philip Oakley <philipoakley@iee.org>
---
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 9c3e3bf..2507c8b 100644
--- a/Documentation/git-remote.txt
+++ b/Documentation/git-remote.txt
@@ -13,7 +13,7 @@ SYNOPSIS
'git remote add' [-t <branch>] [-m <master>] [-f] [--[no-]tags] [--mirror=<fetch|push>] <name> <url>
'git remote rename' <old> <new>
'git remote remove' <name>
-'git remote set-head' <name> (-a | -d | <branch>)
+'git remote set-head' <name> (-a | --auto | -d | --delete | <branch>)
'git remote set-branches' [--add] <name> <branch>...
'git remote set-url' [--push] <name> <newurl> [<oldurl>]
'git remote set-url --add' [--push] <name> <newurl>
@@ -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/<name>/HEAD` is deleted.
+With `-d` or `--delete`, the symbolic ref `refs/remotes/<name>/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/<name>/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
--
1.8.1.msysgit.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] remote set-head: show long options in usage
2013-09-21 15:51 [PATCH 0/2] Update 'git remote set-head' doc and uasage Philip Oakley
2013-09-21 15:51 ` [PATCH 1/2] Doc: remote set-head long options Philip Oakley
@ 2013-09-21 15:51 ` Philip Oakley
2013-09-27 23:52 ` [PATCH 0/2] Update 'git remote set-head' doc and uasage Jonathan Nieder
2 siblings, 0 replies; 4+ messages in thread
From: Philip Oakley @ 2013-09-21 15:51 UTC (permalink / raw)
To: GitList; +Cc: Junio C Hamano
Signed-off-by: Philip Oakley <philipoakley@iee.org>
---
builtin/remote.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/remote.c b/builtin/remote.c
index eaac3e2..4e14891 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 <branch>] [-m <master>] [-f] [--tags|--no-tags] [--mirror=<fetch|push>] <name> <url>"),
N_("git remote rename <old> <new>"),
N_("git remote remove <name>"),
- N_("git remote set-head <name> (-a | -d | <branch>)"),
+ N_("git remote set-head <name> (-a | --auto | -d | --delete |<branch>)"),
N_("git remote [-v | --verbose] show [-n] <name>"),
N_("git remote prune [-n | --dry-run] <name>"),
N_("git remote [-v | --verbose] update [-p | --prune] [(<group> | <remote>)...]"),
@@ -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 <name> (-a | -d | <branch>)"),
+ N_("git remote set-head <name> (-a | --auto | -d | --delete | <branch>)"),
NULL
};
--
1.8.1.msysgit.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Update 'git remote set-head' doc and uasage
2013-09-21 15:51 [PATCH 0/2] Update 'git remote set-head' doc and uasage Philip Oakley
2013-09-21 15:51 ` [PATCH 1/2] Doc: remote set-head long options Philip Oakley
2013-09-21 15:51 ` [PATCH 2/2] remote set-head: show long options in usage Philip Oakley
@ 2013-09-27 23:52 ` Jonathan Nieder
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Nieder @ 2013-09-27 23:52 UTC (permalink / raw)
To: Philip Oakley; +Cc: GitList, Junio C Hamano
Philip Oakley wrote:
> In Junio's recent patch series ([PATCH v3 0/7] Removing the guesswork
> of HEAD in "clone" $gmane/234950), his first patch updated t5505: 'fix
> "set-head --auto with ambiguous HEAD" test'.
>
> A quick look at the git remote man page showed that --auto was not
> documented, nor listed in usage stings.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-27 23:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-21 15:51 [PATCH 0/2] Update 'git remote set-head' doc and uasage Philip Oakley
2013-09-21 15:51 ` [PATCH 1/2] Doc: remote set-head long options Philip Oakley
2013-09-21 15:51 ` [PATCH 2/2] remote set-head: show long options in usage Philip Oakley
2013-09-27 23:52 ` [PATCH 0/2] Update 'git remote set-head' doc and uasage Jonathan Nieder
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.