Re: Minor Bug in Renaming Branches
- From
Stefan Beller <sbeller@google.com>
- Date
- Jun 6, 2016, 19:35 UTC
- Message-ID
- <CAGZ79kb77m8ymDkJGMaWi8yOdSphpYifDPHQ=+nZMBhRi47i9w@mail.gmail.com>
- In-Reply-To
- <54505ef2-7db6-8bc4-0ffb-0ac28c7d6046@web.de>
On Mon, Jun 6, 2016 at 12:17 PM, Torsten Bögershausen <tboegi@web.de> wrote:
Show 5 quoted lines
> A limitation is introduced by Mac OS and Windows: > BRANCH/NAME and branch/name refer to the same object in the file > system. > As a workaround, you can pack the branch names: > git pack-refs --all
Once you packed a branch into the packed refs file, you can create another loose branch of different capitalization, which then 'hides' the packed ref?
That sounds error prone to me, as a seemingly unrelated branch changed its value:
git branch BRANCH 012345
git pack-refs --all
git branch branch BRANCH^
git rev-parse BRANCH
(I'd expect BRANCH^ as return)(I don't have a windows machine for testing here, so that is pure speculation)
Thanks, Stefan