![]() The author probably didn’t write the loop as two out-of-order halves. For example, look at this diff that adds a new loop to an existing function: diff -git a/foo.rb b/foo.rb But because Git generates the diff only from seeing the “before” and “after” states of your files, sometimes the way it shows the changes can be pretty confusing. Most of the time the diff shows exactly what you did: changed some lines, added some new ones, or took some away. If you’ve used Git, you’ve probably looked at a lot of diffs. ![]() Similarly, you can pass -shallow-submodules to git clone to have it make shallow clones of all of your submodules. Now it can apply the same trick to cloning submodules. In the last release we mentioned how Git LFS can use -c config to speed up the initial checkout. So if you need to set a one-off variable for all of your submodule fetches, you can do so with git -c http.proxy=. Git will now pass command-line configuration options down to submodules commands. There are also some new conveniences for specifying how you want your submodule clones and fetches to behave. If you always want submodules to be processed in parallel, you can set the submodule.fetchJobs config option. Now you can also use the -jobs option when cloning or updating submodules: $ git clone -recurse-submodules -jobs=4. In the last release, we showed you how to use the -jobs= option to fetch submodules in parallel, which can be a real time saver. Here’s our look at some of the most interesting new features: Faster and more flexible submodules ![]() The open source Git project has just released Git 2.9.0, with a variety of features and bug fixes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |