[PATCH 0/4 v8] Git configuration directory

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

 



This is a resend of a serie already discussed here:

  http://thread.gmane.org/gmane.comp.version-control.git/198837

I took the liberty of rewording the commit messages, and change a few
words in the documentation (changed some "will be used" to "is used
instead", which sounded more consistant with the context).

A reminder of the context and objectives of the serie:

Git currently stores its configuration file in ~/.gitconfig, which is
nice and customary on Unix, as long as one has only one configuration
file.

But a typical user may want to store not only the config file, but
also the files pointed to by core.excludesfile and
core.attributesfile, which currently have no default values. To store
several configuration files, it makes sense to have a configuration
_directory_ instead of a set of configuration files, all right into
$HOME. Calling this configuration directory ~/.git or ~/.gitconfig is
not an option, since these paths already have another meaning. Using
the XDG specification (in short: ~/.config/git) doesn't have this
drawback, and allows the user to store his configuration files right
next to files from other applications following the XDG standard.

The first 3 patches add read support for this "configuration
directory", and the last one gives opt-in write support, allowing
users to make this "configuration directory" their way of life, and
never hear again about ~/.gitconfig if (and only if) they do not want to.

None of the patches change the behavior for people who do not create
the new configuration files.

Huynh Khoi Nguyen Nguyen (4):
  config: read (but not write) from $XDG_CONFIG_HOME/git/config file
  Let core.excludesfile default to $XDG_CONFIG_HOME/git/ignore
  Let core.attributesfile default to $XDG_CONFIG_HOME/git/ignore
  config: write to $XDG_CONFIG_HOME/git/config file if appropriate

 Documentation/config.txt        |   8 +-
 Documentation/git-config.txt    |  15 +++-
 Documentation/gitattributes.txt |   2 +
 Documentation/gitignore.txt     |   4 +-
 attr.c                          |  17 +++--
 builtin/config.c                |  25 ++++---
 cache.h                         |   3 +
 config.c                        |  23 +++---
 dir.c                           |   7 +-
 path.c                          |  41 +++++++++++
 t/t1306-xdg-files.sh            | 158 ++++++++++++++++++++++++++++++++++++++++
 11 files changed, 270 insertions(+), 33 deletions(-)
 create mode 100755 t/t1306-xdg-files.sh

-- 
1.7.11.rc3.235.gd0d1d08

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]