Skip to content

Commit 778e4b8

Browse files
committed
Merge branch 'ms/remote-tracking-branches-in-doc'
* ms/remote-tracking-branches-in-doc: Change "remote tracking" to "remote-tracking"
2 parents 5b307e9 + d6ac1d2 commit 778e4b8

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

Documentation/git-p4.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,16 @@ Sync options
176176
These options can be used in the initial 'clone' as well as in
177177
subsequent 'sync' operations.
178178

179-
--branch <branch>::
180-
Import changes into given branch. If the branch starts with
181-
'refs/', it will be used as is. Otherwise if it does not start
182-
with 'p4/', that prefix is added. The branch is assumed to
183-
name a remote tracking, but this can be modified using
184-
'--import-local', or by giving a full ref name. The default
185-
branch is 'master'.
179+
--branch <ref>::
180+
Import changes into <ref> instead of refs/remotes/p4/master.
181+
If <ref> starts with refs/, it is used as is. Otherwise, if
182+
it does not start with p4/, that prefix is added.
183+
+
184+
By default a <ref> not starting with refs/ is treated as the
185+
name of a remote-tracking branch (under refs/remotes/). This
186+
behavior can be modified using the --import-local option.
187+
+
188+
The default <ref> is "master".
186189
+
187190
This example imports a new remote "p4/proj2" into an existing
188191
Git repository:

Documentation/git-submodule.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ OPTIONS
262262
--remote::
263263
This option is only valid for the update command. Instead of using
264264
the superproject's recorded SHA-1 to update the submodule, use the
265-
status of the submodule's remote tracking branch. The remote used
265+
status of the submodule's remote-tracking branch. The remote used
266266
is branch's remote (`branch.<name>.remote`), defaulting to `origin`.
267267
The remote branch used defaults to `master`, but the branch name may
268268
be overridden by setting the `submodule.<name>.branch` option in

Documentation/glossary-content.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Note that commands that operate on the history of the current branch
113113
while the HEAD is detached. They update the HEAD to point at the tip
114114
of the updated history without affecting any branch. Commands that
115115
update or inquire information _about_ the current branch (e.g. `git
116-
branch --set-upstream-to` that sets what remote tracking branch the
116+
branch --set-upstream-to` that sets what remote-tracking branch the
117117
current branch integrates with) obviously do not work, as there is no
118118
(real) current branch to ask about in this state.
119119

@@ -267,7 +267,7 @@ This commit is referred to as a "merge commit", or sometimes just a
267267
The default upstream <<def_repository,repository>>. Most projects have
268268
at least one upstream project which they track. By default
269269
'origin' is used for that purpose. New upstream updates
270-
will be fetched into remote <<def_remote_tracking_branch,remote-tracking branches>> named
270+
will be fetched into <<def_remote_tracking_branch,remote-tracking branches>> named
271271
origin/name-of-upstream-branch, which you can see using
272272
`git branch -r`.
273273

builtin/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ static void write_refspec_config(const char* src_ref_prefix,
701701
/*
702702
* otherwise, the next "git fetch" will
703703
* simply fetch from HEAD without updating
704-
* any remote tracking branch, which is what
704+
* any remote-tracking branch, which is what
705705
* we want.
706706
*/
707707
} else {

builtin/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ static int evaluate_result(void)
948948
}
949949

950950
/*
951-
* Pretend as if the user told us to merge with the tracking
951+
* Pretend as if the user told us to merge with the remote-tracking
952952
* branch we have for the upstream of the current branch
953953
*/
954954
static int setup_with_upstream(const char ***argv)
@@ -967,7 +967,7 @@ static int setup_with_upstream(const char ***argv)
967967
args = xcalloc(branch->merge_nr + 1, sizeof(char *));
968968
for (i = 0; i < branch->merge_nr; i++) {
969969
if (!branch->merge[i]->dst)
970-
die(_("No remote tracking branch for %s from %s"),
970+
die(_("No remote-tracking branch for %s from %s"),
971971
branch->merge[i]->src, branch->remote_name);
972972
args[i] = branch->merge[i]->dst;
973973
}

t/t5505-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ test_expect_success 'add another remote' '
7474
)
7575
'
7676

77-
test_expect_success C_LOCALE_OUTPUT 'check remote tracking' '
77+
test_expect_success C_LOCALE_OUTPUT 'check remote-tracking' '
7878
(
7979
cd test &&
8080
check_remote_track origin master side &&

0 commit comments

Comments
 (0)