some time ago I announced that I'm prepare draft for update scripts for work with Git. Now is attached both diff and tarball. I expect comments, objections, other suggestions :)
Adjustments are as follows:
- added support for branches
- the current branch is detected automatically
- added automatic detection gituser (from .git/config)
- optimized some operations
- if is not a mess, reset + clean is not called
- if there is nothing to commit, commit is not called
- if there is nothing to send server, push is not called
- because git submodule init + update in one call update all submodules, for each git tree is called only once
I was thinking about add into script commit_all_submodules check for untracked files. In order to avoid omission of renamed and new files. What is your opinion?
* Do these changes improve the speed of updating a local repository? Updating my local repository takes a long time.
* Do these changes improve anonymous connections? Some time ago this was discussed because many people were havng problems connecting anonymously to maintain a local repository.
* In light of my recent post about supporting a point release schedule, how do these changes support several branches, such as a development branch, a stable branch, and past release branches? I have not tried building 3.5.13.1 packages from GIT and am naive about how multiple branches works.
Darrell