If I have some code like
/**
* blah blah blah
*/
...some codes...
/**
* yadda yadda
And then I add
/**
* blah blah blah
*/
...some codes...
/**
* blah blah blah
*/
...some codes...
before the "yadda yadda" commanet, the git diff will show that I added:
+ * blah blah blah
+ */
+ ...some codes...
+ /**
Is there a way to tell git, "hey, that's not right. Try again."? I know of --patience
but that seems to just be for git diff and for the life of me it never works correctly. I know it's no super important, but it makes diffs and commit logs, especially on GitHub, much more clean.