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 26, 2024
1 parent 6ff00ab commit 1627440
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 1627440

Please sign in to comment.