Re: [PATCH v3] git checkout: create unparented branch by --orphan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Erick Mattos venit, vidit, dixit 21.03.2010 22:15:
> Hi,
> 
> 2010/3/21 Junio C Hamano <gitster@xxxxxxxxx>:
>> I'm not native either, and "orphan" sounded strange in that we've never
>> used that word in any of our use case or workflow description in our
>> documents.
> 
> I didn't know.  I thought you were American.
> 
>> The main point of the feature is not the emptyness of the resulting tree
>> (it is merely one possible outcome), but is the lack of parents in the
>> resulting commit.  So I would recommend against --empty.  --root might be
>> a good synonym, though, and we _do_ already use that word for that purpose
>> in some commands (e.g. "log --root").
> 
> --root could be a synonym but the reason I haven't chosen it was the
> fact that it could mislead people to think the functionality will do
> something with/based on the first commit of the actual branch,
> subjectively thinking "THE ROOT".
> 
> IMHO --orphan (no parents) is more obvious.
> 
> We should argue one of our native English speaker amidst this
> developer community to be sure.

[Disclosure: non-native speaker but having lived with natives ;)]

I'd favour "root" for several reasons:

- "root" is the correct technical term in graph theory
- "root" is used the same way in other (Git) places
- "orphan" is someone who used to have parents, so with "orphan" I would
rather associate the process of removing parents from the picture
(removing parentship information from an existing commit)

Just my two Euro-cents :)
Michael
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]