* [PATCH] glossary: explain "master" and "origin"
@ 2006-01-10 21:26 Johannes Schindelin
2006-01-10 21:36 ` J. Bruce Fields
0 siblings, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2006-01-10 21:26 UTC (permalink / raw)
To: git, junkio
If you are a long time git user/developer, you forget that to a new git
user, these words have not the same meaning as to you.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
Documentation/glossary.txt | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/Documentation/glossary.txt b/Documentation/glossary.txt
index 2331be5..4ef7d2a 100644
--- a/Documentation/glossary.txt
+++ b/Documentation/glossary.txt
@@ -111,6 +111,17 @@ branch::
a particular revision, which is called the branch head. The
branch heads are stored in `$GIT_DIR/refs/heads/`.
+master::
+ The default branch. Whenever you create a git repository, a branch
+ named "master" is created, and becomes the active branch. In most
+ cases, this contains the local development.
+
+origin::
+ The default upstream branch. Most projects have one upstream
+ project which is tracked, and augmented with local changes which
+ eventually get merged back. You never commit to this branch,
+ unless you are maintaining the upstream project.
+
ref::
A 40-byte hex representation of a SHA1 pointing to a particular
object. These may be stored in `$GIT_DIR/refs/`.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] glossary: explain "master" and "origin"
2006-01-10 21:26 [PATCH] glossary: explain "master" and "origin" Johannes Schindelin
@ 2006-01-10 21:36 ` J. Bruce Fields
2006-01-10 21:40 ` Johannes Schindelin
2006-01-10 22:27 ` walt
0 siblings, 2 replies; 6+ messages in thread
From: J. Bruce Fields @ 2006-01-10 21:36 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git, junkio
On Tue, Jan 10, 2006 at 10:26:46PM +0100, Johannes Schindelin wrote:
> +origin::
> + The default upstream branch. Most projects have one upstream
> + project which is tracked, and augmented with local changes which
> + eventually get merged back. You never commit to this branch,
> + unless you are maintaining the upstream project.
The last line is somewhat confusing--a naive reader might take it to
mean that as an upstream maintainer it would make sense to commit to a
branch named "origin". How about something like this?
"The default upstream branch. Most projects have one upstream
project which they track. This is is the branch used for
tracking that project. New updates from upstream will be
fetched into this branch, but you should never commit to it
yourself."
--b.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] glossary: explain "master" and "origin"
2006-01-10 21:36 ` J. Bruce Fields
@ 2006-01-10 21:40 ` Johannes Schindelin
2006-01-11 6:12 ` Junio C Hamano
2006-01-10 22:27 ` walt
1 sibling, 1 reply; 6+ messages in thread
From: Johannes Schindelin @ 2006-01-10 21:40 UTC (permalink / raw)
To: J. Bruce Fields; +Cc: git, junkio
Hi,
On Tue, 10 Jan 2006, J. Bruce Fields wrote:
> On Tue, Jan 10, 2006 at 10:26:46PM +0100, Johannes Schindelin wrote:
> > +origin::
> > + The default upstream branch. Most projects have one upstream
> > + project which is tracked, and augmented with local changes which
> > + eventually get merged back. You never commit to this branch,
> > + unless you are maintaining the upstream project.
>
> The last line is somewhat confusing--a naive reader might take it to
> mean that as an upstream maintainer it would make sense to commit to a
> branch named "origin". How about something like this?
>
> "The default upstream branch. Most projects have one upstream
> project which they track. This is is the branch used for
> tracking that project. New updates from upstream will be
> fetched into this branch, but you should never commit to it
> yourself."
It is probably safer. Note: I actually commit to the origin branch in one
of my projects, and I follow it directly by a "git push origin".
Ciao,
Dscho
P.S.: I just noted that some of the tabs were turned into spaces. Does
asciidoc mind?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] glossary: explain "master" and "origin"
2006-01-10 21:36 ` J. Bruce Fields
2006-01-10 21:40 ` Johannes Schindelin
@ 2006-01-10 22:27 ` walt
2006-01-10 23:33 ` walt
1 sibling, 1 reply; 6+ messages in thread
From: walt @ 2006-01-10 22:27 UTC (permalink / raw)
To: git
J. Bruce Fields wrote:
[...]
> Most projects have one upstream
> project which they track. This is is the branch used for
> tracking that project...
s/This/'origin'/
Lordy, I think many of the world's problems could be solved just
by forbidding the use of pronouns entirely!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] glossary: explain "master" and "origin"
2006-01-10 22:27 ` walt
@ 2006-01-10 23:33 ` walt
0 siblings, 0 replies; 6+ messages in thread
From: walt @ 2006-01-10 23:33 UTC (permalink / raw)
To: git
walt wrote:
> J. Bruce Fields wrote:
> [...]
>> Most projects have one upstream
>> project which they track. This is is the branch used for
>> tracking that project...
>
> s/This/'origin'/
>
> Lordy, I think many of the world's problems could be solved just
> by forbidding the use of pronouns entirely!
Now that I've had another beer, it occurs to me that a 'pronoun'
is nothing more or less than a 'pointer' to a noun.
Well! We all know that pointers are a major source of bugs in
C code. Is it possible that lint could be taught to detect
ambiguous pronouns in everyday speech?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] glossary: explain "master" and "origin"
2006-01-10 21:40 ` Johannes Schindelin
@ 2006-01-11 6:12 ` Junio C Hamano
0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2006-01-11 6:12 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: J. Bruce Fields, git, junkio
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> P.S.: I just noted that some of the tabs were turned into spaces. Does
> asciidoc mind?
Probably not, but I do so I fixed them up myself.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-01-11 6:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-10 21:26 [PATCH] glossary: explain "master" and "origin" Johannes Schindelin
2006-01-10 21:36 ` J. Bruce Fields
2006-01-10 21:40 ` Johannes Schindelin
2006-01-11 6:12 ` Junio C Hamano
2006-01-10 22:27 ` walt
2006-01-10 23:33 ` walt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).