[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Cluster-devel] GFS2: Add structure to contain rgrp, bitmap, offset tuple



On 08/03/2012 03:10 PM, Steven Whitehouse wrote:
Looks like there is a space there in my git tree. I'll fix that in the
next patch. I wonder why git didn't warn me....

By default git only warns about trailing whitespace when you're applying a patch. If you do:

  $ cp .git/hooks/pre-commit.sample .git/hooks/pre-commit

Then it'll warn on commit, too:

  $ git commit -a
  gfs2/mkfs/main_mkfs.c:209: trailing whitespace.
  +		strncpy(sdp->device_name, argv[optind++], PATH_MAX - 1);

Andy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]