-
Notifications
You must be signed in to change notification settings - Fork 105
Comparing changes
Open a pull request
base repository: microsoft/git
base: v2.49.0.vfs.0.2
head repository: microsoft/git
compare: v2.49.0.vfs.0.3
- 8 commits
- 4 files changed
- 3 contributors
Commits on Apr 30, 2025
-
fixup! Adding winget workflows
During a refactoring I accidentally omitted the `$manifestPath` variable that is required to determine the `$manifestDirectory` for the submission command to WinGet. Since the directory is just a constant, let's update the submission command. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com> Signed-off-by: Johannes Schindelin <johasc@microsoft.com>
Configuration menu - View commit details
-
Copy full SHA for 0107738 - Browse repository at this point
Copy the full SHA 0107738View commit details -
release-winget.yml: fix submission pwsh script (#747)
During a refactoring the `$manifestPath` variable assignment was accidentally omitted which is required to determine the `$manifestDirectory` for the submission command to WinGet. Since the `$manifestDirectory` is just a constant, let's update the submission command. Some things seem to have changed in `wingetcreate.exe` so that the directory structure is different, and the manifest location can no longer be specified as vaguely as before, therefore this all looks quite a bit more involved than simply specifying `./manifests` instead of `$manifestDirectory`.
Configuration menu - View commit details
-
Copy full SHA for ba7e40a - Browse repository at this point
Copy the full SHA ba7e40aView commit details
Commits on May 7, 2025
-
fixup! hooks: add custom post-command hook config
This change to use the 'info/' directory instead of the 'hooks/' directory is important because the hooks dir could be redirected to the source tree. Modify the test in such a way that this code change would fail due to being unable to write to the internal hooks directory. Signed-off-by: Derrick Stolee <stolee@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e7d349d - Browse repository at this point
Copy the full SHA e7d349dView commit details -
hook: extract the internal hook replacement logic
Before making the post-index-change logic more advanced for the postCommand.strategy=post-index-change feature, extract the code into a new method that will be easier to update in the future. Signed-off-by: Derrick Stolee <stolee@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3eb2bd0 - Browse repository at this point
Copy the full SHA 3eb2bd0View commit details -
hook: restrict post-command hook even more
The postCommand.strategy=post-index-change config was designed to replace some internal hook usage. This internal hook was more restrictive than the initial feature was designed. Specifically, it ignored index updates that did not update the worktree. With the existing implementation, this causes more work done in the post-command hook than intended. Update the code to write a sentinel file only when the worktree is changed. Signed-off-by: Derrick Stolee <stolee@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8c178e8 - Browse repository at this point
Copy the full SHA 8c178e8View commit details -
hooks: change postCommand.strategy config value
The previously-named 'post-index-change' value for 'postCommand.strategy' did the following two things: 1. Avoid running the post-command hook unless the post-index-change hook _would_ run with a signal that the worktree changed. 2. Avoid running any installed post-index-change hooks. The additional restriction of the worktree change in (1) makes this name less appropriate. Also, item (2) seems to be a side-effect that we should avoid. We would like to allow both behaviors to exist. Update the value and behavior, including the tests. Signed-off-by: Derrick Stolee <stolee@gmail.com>Configuration menu - View commit details
-
Copy full SHA for e1cfb52 - Browse repository at this point
Copy the full SHA e1cfb52View commit details -
hooks: simplify handle_hook_replacement()
Now that we don't skip the post-index-change hook, we don't need to pass the return value as an out-parameter in this method. Signed-off-by: Derrick Stolee <stolee@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for aa035a2 - Browse repository at this point
Copy the full SHA aa035a2View commit details -
Update behavior for postCommand.strategy=post-index-change (#748)
This feature was introduced in #736 but had a few pain points that were discovered when testing the full replacement of the existing post-index-change and post-command hooks in our internal environment: 1. When using `core.hooksPath` to point to a directory within the worktree, the sentinel files were being written into the worktree. Write to `$GITDIR/info/` instead. 2. The existing internal post-index-change hook only signaled that work needed to be done if actually the _worktree_ changed. Make the sentinel file logic more restrictive to only write in these cases. Tests are added to confirm both of these behavior changes. To reflect the changed behavior, the name `post-index-change` was renamed to `worktree-change`.
Configuration menu - View commit details
-
Copy full SHA for 107f41a - Browse repository at this point
Copy the full SHA 107f41aView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.49.0.vfs.0.2...v2.49.0.vfs.0.3