[PATCH 0/5] checkout --orphan improvements
- From
Erick Mattos <erick.mattos@gmail.com>
- Date
- May 22, 2010, 00:28 UTC
- Message-ID
- <1274488119-6989-1-git-send-email-erick.mattos@gmail.com>
These series of patches are improvements to 'git checkout --orphan'.
The main reason for them is a corner case which is not being solved by actual implementation. As it is a quite improbable situation and as it was necessary to do more extensive changes to support it then its development was held to be presented in a new developing cycle.
When someone set core.logAllRefUpdates to false reflogs are not created automatically. This behavior is superseeded by -l option. Actually this is not allowed with --orphan by current implementation. Those new patches are made to fix that.
There are also two other patches for configuring completion in bash and to enhance documentation.
To be completely honest I don't see a point of not having the reflogs created and deleted automatically so I see no reason for -l and core.logAllRefUpdates at all. But I do not like to do anything partially thus these new patches. If someone could show me a case please do it. ;-)
[PATCH 1/5] Documentation: alter checkout --orphan description
This one improves documentation text by late corrections from previous threads.
[PATCH 2/5] refs: split log_ref_write logic into log_ref_setup
Prepare the field by separating the logic to set up the reflog from the reflog writing action.
[PATCH 3/5] checkout --orphan: respect -l option always
This is the actual actor.
[PATCH 4/5] t3200: test -l with core.logAllRefUpdates options
Adjusting scripts to test everything extensively.
[PATCH 5/5] bash completion: add --orphan to 'git checkout'
Just do that git change.