git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Add 'core.fsyncobjectfiles' config option
@ 2008-06-18 22:29 Linus Torvalds
  2008-06-18 22:30 ` [PATCH 1/4] Split up default "core" config parsing into helper routine Linus Torvalds
  0 siblings, 1 reply; 16+ messages in thread
From: Linus Torvalds @ 2008-06-18 22:29 UTC (permalink / raw)
  To: Junio C Hamano, Git Mailing List; +Cc: Denis Bueno


So these four patches end up adding support for conditionally enabling 
fsync() on loose object creation in the .gitconfig file with something 
like

	[core]
		FsyncObjectFiles = true

which can be useful on filesystems that don't already guarantee data 
consistency for other reasons (whether due to ordered writes or due to 
full data journalling).

Actually, just the last one adds the fairly trivial feature, the three 
first patches are just cleanups of the config parsing that I needed in 
order to not gouge my eyes out when looking at the code. The config file 
parser is kind of ad-hoc and people have added more and more options to it 
without ever trying to clean it up, and I refuse to do that.

The full patch-series is

  Split up default "core" config parsing into helper routine
  Split up default "user" config parsing into helper routine
  Split up default "i18n" and "branch" config parsing into helper
    routines
  Add config option to enable 'fsync()' of object files

resulting in the following diffstat:

 Documentation/config.txt |    8 ++++
 cache.h                  |    1 +
 config.c                 |   82 ++++++++++++++++++++++++++++++++++-----------
 environment.c            |    1 +
 sha1_file.c              |    3 +-
 5 files changed, 74 insertions(+), 21 deletions(-)

and the patches themselves will follow..

			Linus

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-06-19  2:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-18 22:29 [PATCH 0/4] Add 'core.fsyncobjectfiles' config option Linus Torvalds
2008-06-18 22:30 ` [PATCH 1/4] Split up default "core" config parsing into helper routine Linus Torvalds
2008-06-18 22:31   ` [PATCH 2/4] Split up default "user" " Linus Torvalds
2008-06-18 22:31     ` [PATCH 3/4] Split up default "i18n" and "branch" config parsing into helper routines Linus Torvalds
2008-06-18 22:32       ` [PATCH 4/4] Add config option to enable 'fsync()' of object files Linus Torvalds
2008-06-18 22:49   ` [PATCH 1/4] Split up default "core" config parsing into helper routine Jeff King
2008-06-18 22:58     ` Linus Torvalds
2008-06-18 23:13       ` Jeff King
2008-06-18 23:34         ` Linus Torvalds
2008-06-19  0:08           ` Jeff King
2008-06-19  0:23             ` Linus Torvalds
2008-06-19  0:28               ` Linus Torvalds
2008-06-19  2:10                 ` Daniel Barkalow
2008-06-19  0:32               ` Junio C Hamano
2008-06-19  1:23               ` Jeff King
2008-06-19  0:18           ` Eric Raible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).