Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 09/10] user-manual.txt: explain better the remote(-tracking) branch terms

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:49:52

Thore Husfeldt [off-list ref] writes:

quoted
diff --git a/Documentation/user-manual.txt
b/Documentation/user-manual.txt
quoted
index d70f3e0..02126f1 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -359,6 +359,11 @@ $ git branch -r
  origin/todo
------------------------------------------------

+In this case, "origin" is called a remote repository, or "remote"
for
quoted
+short. The branches of this repository are called "remote branches"
+from our point of view, and Git will maintain a copy of these
+branches, called "remote-tracking branches" in the local
repository.

No. Git does not “maintain a copy of [the remote] branches”.
Which part of the sentence is problematic to you ?

Remote-tracking branches _are_ a copy of the branches. The copy is
made at "git clone" time, and is periodically updated with "git fetch"
later. And it seems to me that "periodically update" is a way to
"maintain" the copy up-to-date.

In the latest version of the patch, I changed "maintain" to "keep",
following Jakub's remark. Is that better?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help