![]() Internally, Git is acquiring a new "pluggable reference name interface" and future versions of Git might use neither this file, nor individual per-reference files.ģIn general, creating or updating a reference causes an unpacked reference file to come into existence. Things like Photoshop internally try to use files named foo and FOO and expect this to refer to the same file!)ĢThis packed-references file has been around for quite a while, but not forever, and very early versions of Git may not use it. (But if you change from the defaults, expect software that is intended for your box to fail, because it will. But they become "unpacked" over time, 3 and then on some systems they become case-folding.īecause it sometimes fails on some systems, it's generally best to avoid using multiple reference names that differ only in case.ġOf course, on modern Unix/Linux systems, you can now get access to case-preserving-but-case-insensitive file systems, and Windows and MacOS can now be told not to do case-folding for some file systems. git/packed-refs, 2 so at this point they are case sensitive. In fact, on initial clone, all the names are in a single file called. Specifically, it fails when Git stores references in individual files, whose names are derived from the reference name, and those file names are case-insensitive (e.g., case-preserving, but fold case during name-matching or even converting everything to uppercase-only, as in the really old FAT 8.3 format, but we can hope no modern file system does this).Īs noted above, Git does not always store reference names as file names. It sometimes fails on Windows and some MacOS systems. When Git stores branch names in the file system as file names (which it only does sometimes), the file system is also case-sensitive. This all works perfectly on Linux / Unix machines, where Git's code is case-sensitive to start with. Git branch names-and tag names, and all other reference names, as Git calls them-were originally intended to be case-sensitive. Thanks heapsĪnswering just the question in the subject line, without addressing anything about git show-branch ( like ElpieKay, I never actually use git show-branch it seems mainly mis-informative): Is there any way to get back to how it was during original state in term of the DV references? Did the git got confused and renamed my historic information with a branch that is similar and only differs by capital case? ![]() Note also that the 5th line references to dev have now changed to DV (i.e. Note that the branch is now including DV and dev. I am trying to return back to how it was by modifying the DEV branch name to DV (running git branch –m DEV DV) and showing the branch now look like: ! Style Changes What is the 5th line output referring to? I would expect it to remain “dev” instead of being changed to “DEV” as the descriptions next to it refers to the description of old work during “dev” branch. Note also that on the 5th line the references to dev have now changed to DEV (i.e. Note that both dev and DEV are listed as branch. So I went ahead and create new branch (git branch DEV) and now running git show-branch –date-order: ! Style Changes dev, dev^, dev~2 etc).įor my development purpose, I was trying to come up with a branch called ‘DEV’, all capital. Note that highlighted there are several references to dev (i.e. Note that there is a branch called ‘dev’ at this point. This is the original state ( output by git show-branch): ! CR 232 Release I am a new git user and recently been handed with an out of date git repository to look after.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |