Skip to content

Commit

Permalink
jj-fzf: split-files: try using jj diff instead of git diff-tree
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Dec 22, 2024
1 parent 4e996bd commit 967a421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jj-fzf
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ split-files()
R="$(xrev "${1:-@}")"
cd "$JJROOT" # operate on root relative file names
# read files affected by $R
mapfile -t MAPFILE < <(git diff-tree --no-commit-id --name-only -r "$(rev_commitid "$R")")
mapfile -t MAPFILE < <(jj diff --name-only -r "$(rev_commitid "$R")")
[[ ${#MAPFILE[@]} -gt 1 ]] ||
return
# show undo hint
Expand Down

0 comments on commit 967a421

Please sign in to comment.