Skip to content

Commit 929c097

Browse files
committed
Merge branch 'rd/doc-remote-tracking-with-hyphen'
Doc update. * rd/doc-remote-tracking-with-hyphen: Use hyphenated "remote-tracking branch" (docs and comments)
2 parents faff812 + 30aa96c commit 929c097

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Documentation/git-submodule.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ have to use '../foo.git' instead of './foo.git' - as one might expect
4242
when following the rules for relative URLs - because the evaluation
4343
of relative URLs in Git is identical to that of relative directories).
4444
+
45-
The default remote is the remote of the remote tracking branch
46-
of the current branch. If no such remote tracking branch exists or
45+
The default remote is the remote of the remote-tracking branch
46+
of the current branch. If no such remote-tracking branch exists or
4747
the HEAD is detached, "origin" is assumed to be the default remote.
4848
If the superproject doesn't have a default remote configured
4949
the superproject is its own authoritative upstream and the current

builtin/branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
701701
* If no sorting parameter is given then we default to sorting
702702
* by 'refname'. This would give us an alphabetically sorted
703703
* array with the 'HEAD' ref at the beginning followed by
704-
* local branches 'refs/heads/...' and finally remote-tacking
704+
* local branches 'refs/heads/...' and finally remote-tracking
705705
* branches 'refs/remotes/...'.
706706
*/
707707
if (!sorting)

builtin/pull.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ static const char *get_upstream_branch(const char *remote)
673673
}
674674

675675
/**
676-
* Derives the remote tracking branch from the remote and refspec.
676+
* Derives the remote-tracking branch from the remote and refspec.
677677
*
678678
* FIXME: The current implementation assumes the default mapping of
679679
* refs/heads/<branch_name> to refs/remotes/<remote_name>/<branch_name>.
@@ -711,7 +711,7 @@ static const char *get_tracking_branch(const char *remote, const char *refspec)
711711

712712
/**
713713
* Given the repo and refspecs, sets fork_point to the point at which the
714-
* current branch forked from its remote tracking branch. Returns 0 on success,
714+
* current branch forked from its remote-tracking branch. Returns 0 on success,
715715
* -1 on failure.
716716
*/
717717
static int get_rebase_fork_point(struct object_id *fork_point, const char *repo,

0 commit comments

Comments
 (0)