Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/git
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.49.0.vfs.0.2
Choose a base ref
...
head repository: microsoft/git
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.49.0.vfs.0.3
Choose a head ref
  • 8 commits
  • 4 files changed
  • 3 contributors

Commits on Apr 30, 2025

  1. 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>
    mjcheetham committed Apr 30, 2025
    Configuration menu
    Copy the full SHA
    0107738 View commit details
    Browse the repository at this point in the history
  2. 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`.
    dscho authored Apr 30, 2025
    Configuration menu
    Copy the full SHA
    ba7e40a View commit details
    Browse the repository at this point in the history

Commits on May 7, 2025

  1. 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>
    derrickstolee committed May 7, 2025
    Configuration menu
    Copy the full SHA
    e7d349d View commit details
    Browse the repository at this point in the history
  2. 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>
    derrickstolee committed May 7, 2025
    Configuration menu
    Copy the full SHA
    3eb2bd0 View commit details
    Browse the repository at this point in the history
  3. 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>
    derrickstolee committed May 7, 2025
    Configuration menu
    Copy the full SHA
    8c178e8 View commit details
    Browse the repository at this point in the history
  4. 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>
    derrickstolee committed May 7, 2025
    Configuration menu
    Copy the full SHA
    e1cfb52 View commit details
    Browse the repository at this point in the history
  5. 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>
    derrickstolee committed May 7, 2025
    Configuration menu
    Copy the full SHA
    aa035a2 View commit details
    Browse the repository at this point in the history
  6. 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`.
    dscho authored May 7, 2025
    Configuration menu
    Copy the full SHA
    107f41a View commit details
    Browse the repository at this point in the history
Loading