Ian/Simon/Simon, Do you have an opinion on this? My proposal below has support from David, Manuel and Daniel Fischer, but I don't want to go installing new git hooks without your go-ahead!
Max On 25 October 2011 11:52, Max Bolingbroke <batterseapo...@hotmail.com> wrote: > If we are going to make whitespace changes, we should probably have a > check to ensure that tabs don't get added back in by later commits. > I've created a pre-receive hook that verifies the following property: > > Taken *as a whole*, the series of commits you are trying to push.. > ..for all file *modified* (i.e. I'm ignoring renames) by the commits.. > ..that do not contain tabs *before* the push.. > ..your commits do not add a *new* line containing a tab > > Your push is rejected with a list of all violations if this property > is violated. At this point you can either write a new patch that fixes > the validation problems, or just rebase to edit the commit introducing > the problem. > > I've also written a pre-commit hook that GHC developers could copy > into their own git repos to ensure that such bad commits never get > created in the first place. > > Is this something we want to check? Should we use this pre-receive > hook on darcs.haskell.org? > > Max > > On 25 October 2011 10:17, Manuel Chakravarty <c...@cse.unsw.edu.au> wrote: >> Repository : ssh://darcs.haskell.org//srv/darcs/ghc >> >> On branch : master >> >> http://hackage.haskell.org/trac/ghc/changeset/9ada6542bad350664b6991b33dc675daac999793 >> >>>--------------------------------------------------------------- >> >> commit 9ada6542bad350664b6991b33dc675daac999793 >> Author: Manuel M T Chakravarty <c...@cse.unsw.edu.au> >> Date: Wed Oct 19 16:09:37 2011 +1100 >> >> Tabs -> spaces >> >> compiler/iface/TcIface.lhs | 856 >> ++++++++++++++++++++++---------------------- >> 1 files changed, 429 insertions(+), 427 deletions(-) >> >> >> Diff suppressed because of size. To see it, use: >> >> git show 9ada6542bad350664b6991b33dc675daac999793 >> >> _______________________________________________ >> Cvs-ghc mailing list >> Cvs-ghc@haskell.org >> http://www.haskell.org/mailman/listinfo/cvs-ghc >> > _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc