Skip to content

Commit

Permalink
Fix: empty line showing up when when adding files
Browse files Browse the repository at this point in the history
  • Loading branch information
sandr01d committed Apr 25, 2024
1 parent b9f3055 commit 85126c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-forgit
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ _forgit_list_files() {
# merge conflict.
# With the -z flag, git also uses \0 line termination, so we
# have to replace the terminators.
git ls-files -z "$@" "$rootdir" | uniq | tr '\0' '\n'
git ls-files -z "$@" "$rootdir" | tr '\0' '\n' | uniq
}

_forgit_log_preview() {
Expand Down

0 comments on commit 85126c1

Please sign in to comment.