Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitSync.update: use git reset --merge instead of --hard (bug 552814)
Since `git reset --merge` gives the closest behavior to `git pull`, use it instead of `-git reset --hard`. This will provide the following advantages: * git will not have to stat files that have not changed since the previous sync, which will allow for optimal performance * git will abort if there are unstaged local changes to any files that have changed since the previous sync Suggested-by: Michał Górny <mgorny@gentoo.org> Fixes 84413bb ("GitSync.update: respect sync-depth (bug 552814)")
- Loading branch information