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
Post a Comment