fix(git-cp): keep the history of the files#988
Conversation
There was a problem hiding this comment.
Why do we need to use -a after git mv?
There was a problem hiding this comment.
It is the test to avoid interruption because the original implementation was interrupted by conflict always. At first, it confused me and I thought something missing maybe, so the option -a was added. The option -a is useless for the current implementation and I forget to remove it. Fixed already.
0d721fa to
6e6f59b
Compare
spacewander
left a comment
There was a problem hiding this comment.
I tried the PR and found out it will create multiple commits for a cp operation? The previous version only created one.
Keeping only one commit will overwrite the history always and I did not find a better way to keep the history and only one commit. But i think keeping the history of the file is meaningful. That is the reason the PR comes out. If the history did not keep anymore, the document of the |
spacewander
left a comment
There was a problem hiding this comment.
I run git cp AUTHORS AUTHORS.txt with the new git-cp, but the AUTHORS.txt doesn't have the same history as AUTHORS.
Ah, it is my mistake. |

fix #985
The implement 91b3e47 gives a great idea to show the way to reach the goal. I just renew the way to show it clearly.