potherca-bash / git-split-file

Split a file in a git repository without losing the git history.
https://bash.pother.ca/git-split-file/
GNU General Public License v3.0
31 stars 4 forks source link

cat command instead of git status #7

Closed pedroteixeira closed 2 years ago

pedroteixeira commented 3 years ago

Probably should be $(git status instead of $(cat git status at: https://github.com/potherca-bash/git-split-file/blob/master/src/git-split-file.sh#L374

pedroteixeira commented 3 years ago

I just tried to use the script and I had conflicts when splitting to 4 files. Perhaps git add -A :/ to add all files?

I changed to it in order to make the script add the files and it seemed to have worked :+1:

Potherca commented 3 years ago

Probably should be $(git status instead of $(cat git status

Yup. That's a bug. Will fix.

Perhaps git add -A to add all files?

I'd have to see if/what conflicts that might create with other use-cases but that might be a good idea :+1: