minify - Is it possible to remove code comments with Git -


might go against git best practise, possible remove code comments or minify code git command. git pull --minify.

no. git must not change code goes in or out of repository unless change symmetric, when can repeat transformation in both ways. typical cases here end of line transformations (unix / mac / windows). dangerous (just try image file).

the reason why git can't changes stripping comments: if made change file, git have remember "i did strip comments", put comments (hoping merge wouldn't create additional conflicts) , commit result repository.

so create more places can break. worse, being "hidden" part of process, see surprising error messages ("??? didn't write this?? git doing????")


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -