Skip to content

Commit b360cca

Browse files
jnarebJunio C Hamano
authored andcommitted
git-clone: Rename --use-immingled-remote option to --no-separate-remote
With making --use-separate-remote default when creating non-bare clone, there was need for the flag which would turn off this behavior. It was called --use-immingled-remote. Immingle means to blend, to combine into one, to intermingle, but it is a bit obscure word. I think it would be better to use simply --no-separate-remote as the opposite to --use-separate-remote option to git clone. Signed-off-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e114726 commit b360cca

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Documentation/git-clone.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SYNOPSIS
1111
[verse]
1212
'git-clone' [--template=<template_directory>] [-l [-s]] [-q] [-n] [--bare]
1313
[-o <name>] [-u <upload-pack>] [--reference <repository>]
14-
[--use-separate-remote | --use-immingled-remote] <repository>
14+
[--use-separate-remote | --no-separate-remote] <repository>
1515
[<directory>]
1616

1717
DESCRIPTION
@@ -105,7 +105,7 @@ OPTIONS
105105
of `$GIT_DIR/refs/heads/`. Only the local master branch is
106106
saved in the latter. This is the default.
107107

108-
--use-immingled-remote::
108+
--no-separate-remote::
109109
Save remotes heads in the same namespace as the local
110110
heads, `$GIT_DIR/refs/heads/'. In regular repositories,
111111
this is a legacy setup git-clone created by default in

git-clone.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ die() {
1414
}
1515

1616
usage() {
17-
die "Usage: $0 [--template=<template_directory>] [--use-immingled-remote] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] [-u <upload-pack>] [--origin <name>] [-n] <repo> [<dir>]"
17+
die "Usage: $0 [--template=<template_directory>] [--no-separate-remote] [--reference <reference-repo>] [--bare] [-l [-s]] [-q] [-u <upload-pack>] [--origin <name>] [-n] <repo> [<dir>]"
1818
}
1919

2020
get_repo_base() {
@@ -140,7 +140,7 @@ while
140140
*,--use-separate-remote)
141141
# default
142142
use_separate_remote=t ;;
143-
*,--use-immingled-remote)
143+
*,--no-separate-remote)
144144
use_separate_remote= ;;
145145
1,--reference) usage ;;
146146
*,--reference)
@@ -176,7 +176,7 @@ repo="$1"
176176
test -n "$repo" ||
177177
die 'you must specify a repository to clone.'
178178

179-
# --bare implies --no-checkout and --use-immingled-remote
179+
# --bare implies --no-checkout and --no-separate-remote
180180
if test yes = "$bare"
181181
then
182182
if test yes = "$origin_override"

0 commit comments

Comments
 (0)