From: Jeff Adamson <jwa@urbancode.com>
To: git@vger.kernel.org
Subject: Value size limits on git config files
Date: Tue, 5 Apr 2011 12:29:31 -0400 [thread overview]
Message-ID: <BANLkTikknAiYr4y-it3+qZ3dnXE56dQBoQ@mail.gmail.com> (raw)
When trying to incorporate large aliases into my ~/.gitconfig file via
`git config --global "!$(cat myscript)"`, I determined that there
appears to be a limit to the size of a value. When exceeded, git
prints out "fatal: bad config file line 82 in ~/.gitconfig". I was
able to strip enough comments and such from myscript that it then no
longer invalidated the config once the value was less than 1024 chars.
(Minor aside, I am doing this as a small experiment to potentially
aid in synchronizing all my git behaviors across machines by inlining
them into the config file. Whether this is a good path to explore or
not is a separate issue.)
My questions are:
Is this 1024 char limit on config file values documented somewhere?
Should it be considered a bug that git config can write out config
files which it can not then read (e.g. it should be changed to either
enforce the value-length limit during writing, or the parser updated
to handle large values)?
Thanks,
Jeff
next reply other threads:[~2011-04-05 16:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 16:29 Jeff Adamson [this message]
2011-04-05 17:01 ` Value size limits on git config files Erik Faye-Lund
2011-04-05 17:35 ` Drew Northup
2011-04-05 18:15 ` Erik Faye-Lund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTikknAiYr4y-it3+qZ3dnXE56dQBoQ@mail.gmail.com \
--to=jwa@urbancode.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).