Git 2.31 Is Out

You can now reverse index into a new, on-disk format with the ‘.rev’ extension.

Recently, Git project just Git 2.31, which brings many new features and enhancements to the platform.

With the latest version 2.31, Git has brought the ability to serialize the reverse index into a new, on-disk format with the ‘.rev’ extension. It takes about the same amount of time to print an object’s contents as it does its size.

The team said that reverse indexes can help you beyond synthetic experiments for example when sending objects for a fetch or push, the reverse index can be used to send object bytes directly from disk. Here getting a reverse index computed ahead of time makes this process run faster.

Source: Github

The release also brings a cross-platform feature background maintenance, which allows Git to keep your repository healthy while not blocking any of your interactions. Specifically, this will improve your git fetch times by pre-fetching the latest objects from your remotes once an hour.

For getting started with background maintenance you simply need to navigate your terminal to any repository you want to enable background maintenance on, and run the command:  $ git maintenance start

Apart from pre-fetching the latest objects once an hour, Git will also make sure that its own data is organized. Git will update its commit-graph file once an hour, and pack any loose objects nightly. You can learn more about this feature in the git maintenance documentation.

In Git 2.31 "if you are cloning a newly-created repository locally to start writing the first patches, your local copy will respect the default branch name set by the remote, even if there aren’t any commits yet."

For additional details, you can visit the official announcement here.



Next Recommended Reading Windows Source Code Is Live On Git