I noticed a default option in git core.repositoryFormatVersion which defaults to 0, but what are "repository format versions" and what functional difference do they make?
what are the different repository format versions (for the core.repositoryFormatVersion setting) in git?
15k Views Asked by Alexander Bird At
2
There are 2 best solutions below
1
hobbs
On
It's for future compatibility -- if the git developers ever find it necessary to change the way that repos are stored on disk to enable some new feature, then they can make upgraded repos have a core.repositoryformatversion of 1. Then newer versions of git that know about that new format will trigger the code to deal with it, and older versions of git that don't will gracefully error with "Expected git repo version <= 0, found 1. Please upgrade Git".
As of now, the only repo format version defined or recognized is 0, which denotes the format that every public release of git has used.
Related Questions in GIT
- Push mysql database script to server using git
- Git show's file path
- Git > diffs filtered, show only certain changed classes/files
- Pushing to git repository hosted by Visual studio online without entering user name and password
- How do I create my own Git branch to work on?
- Git init --bare giving error fatal: Out of memory? mmap failed: No such device
- Sub-directory into independent repository and later merge back into main repository
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- eclipse errors when try to change to master git branch
- How to have Heroku build my development branch on a staging server?
- Is "Merged in" a commit message created by bitbucket, or git?
- Git: Multiple projects under one directory
- Permission denied hg-git
- Is it possible to clone a private git repo without adding ssh keys
- Track file in master repository which is ignored in submodule
Related Questions in VERSION-CONTROL
- How to find the Git Revision Hash in a synced SVN repo using SubGit?
- How to delete a repository and add a new one in Android studio?
- Import Git SVN cloned repository into existing Git repository
- HowTo: change a project's status from `Invalid` to `Valid`?
- git - put files back under version control
- TFS version control does not show conflicts
- Git: how to commit and cherry-pick bug fix?
- git-svn problems creating tags
- Switching Git branches inside an Android Repo project
- Reverse Merge and svn:mergeinfo
- Push remote specific branches with different names
- Automatically deploy latest revision to website from SVN server
- Version Control for analytic projects
- How to tell git that my local directory is a specific directory in the remote tree
- How to properly determine a Git repository's URL
Related Questions in CONFIGURATION
- Logback stopped logging after splitting shared config file
- Understanding Grizzly 1.9.36 internals
- Symfony 2 and php.yml configuration
- Tree configuration to turn on/off the features in java
- Deleting Repeated Services from Android GCM Config File
- What does the dot mean in Symfony service names?
- How to manage configuration data in large projects?
- org.apache.commons.configuration.INIConfiguration: section name with dot (period)
- How to include js files in a Visual Studio project on build
- What is the correct way to use app.config for my plugin when using MEF?
- How run several instances of GWT application in IntelliJIDEA
- ejabberd block messages from users that don't stay in my friend list
- CMake error while configuring "install TARGETS given no RUNTIME DESTINATION for executable target "assimp_simpletexturedogl"."
- Need help in configuring Jenkins with Coverity. Getting Error Message
- How do I access the service provider when registering using typescript class
Related Questions in REPOSITORY
- How to push a Git server repository issues to Github repository?
- escaping values in Spring Data Repository
- Duplicate entry '[X]' for key '[Y]' on JPA repository 'save' operation. Saved entity has its key defined already
- Mock service that takes unitOfWork in constructor
- How to turn local source code directory into remote git repo?
- Migrating Nexus repository manager
- How to configure authentication for access of repository in pom.xml?
- Get Record ID in Entity Framework 5 after insert
- Android Studio Best way import module from other repository
- Repository Pattern with Repository Factory
- Octokit.net Creating new repository
- No Author in SVN Repo Logs
- Attaching an entity of type '' failed because another entity of the same type already has the same primary key value
- mercurial - several projects and repositories
- Symfony2: How to Call functions in Repository class from Type
Related Questions in RCS
- Recover a version controlled file from CVS
- Customizing the output of Perforce RCS keyword expansion
- what are the different repository format versions (for the core.repositoryFormatVersion setting) in git?
- rcs checkout without touching the current working file
- In the RCS file format in a CVS repo, what does x.y.0.2 as a revision indicate?
- Script to adjust history in an RCS/CVS ,v file
- Yacc generated C file sccsid warning supression
- Single-file history format/library for binary files?
- How to delete file in RCS?
- Migrate project from RCS to git?
- Advice on the structure of my repository
- Is there a blame/annotate for RCS on windows?
- merge with rcsmerge - how
- Did I need server for "android-rcs-ims-stack"?
- how to find who is holding the lock of a file in RCS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
git 2.7 (Nov. 2015) adds a lot more information in the new
Documentation/technical/repository-version.txt.See commit 067fbd4, commit 00a09d5 (23 Jun 2015) by Jeff King (
peff).(Merged by Junio C Hamano --
gitster-- in commit fa46579, 26 Oct 2015)You now can define "extensions", and use
core.repositoryformatversionas a "marker" to signal the existence of said extensions, instead of having to bump the Git version number itself:Extracts from the doc:
Now that is really an original approach to all the release version number policy and its semver policy.
As a first extension, you will have with git 2.7
preciousObjects:The doc mentions:
That is:
Note that this
core.repositoryformatversionbusiness is old. Really old. commit ab9cb76, Nov. 2005, Git 0.99.9l.It was done initially for the db version:
Git 2.22 (Q2 2019) will avoid leaks around the
repository_formatstructure.See commit e8805af (28 Feb 2019), and commit 1301997 (22 Jan 2019) by Martin Ågren (``).
(Merged by Junio C Hamano --
gitster-- in commit 6b5688b, 20 Mar 2019)With Git 2.28 (Q3 2020), the runtime itself can upgrade the repository format version automatically, for example on an unshallow fetch.
See commit 14c7fa2, commit 98564d8, commit 01bbbbd, commit 16af5f1 (05 Jun 2020) by Xin Li (
livid).(Merged by Junio C Hamano --
gitster-- in commit 1033b98, 29 Jun 2020)Warning: In 2.28-rc0, we corrected a bug that some repository extensions are honored by mistake even in a version 0 repositories (these configuration variables in
extensions.*namespace were supposed to have special meaning in repositories whose version numbers are 1 or higher), but this was a bit too big a change.See commit 62f2eca, commit 1166419 (15 Jul 2020) by Jonathan Nieder (
artagnon).(Merged by Junio C Hamano --
gitster-- in commit d13b7f2, 16 Jul 2020)