TypeScript error: fs parameter doesn't exist in the git.merge type definition.
The fs client is already available to git.merge through the git object context, so we don't need to pass it explicitly.
The git.fastForward() function requires an http client for fetching from remote, which we don't need for local branch merges.
Changed to use git.writeRef() to directly update the branch reference to point to the source branch commit, which is the correct way to do a local fast-forward merge without needing network operations.
The merge dialog was showing success but the commits weren't appearing in git log because the merge result wasn't being committed properly.
Issues fixed:
1. Fast-forward merges now use git.fastForward() and checkout to update working directory
2. Three-way merges now properly create a merge commit with two parents using the merged tree
3. Added git.checkout() after merge to update working directory to match new HEAD
4. Set toast duration to Infinity for merge failures so users can read the error
The key issue was that git.merge() returns a tree object but doesn't create a commit - we need to explicitly call git.commit() with the merged tree and both parent commits to create the actual merge commit.