git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Value size limits on git config files
@ 2011-04-05 16:29 Jeff Adamson
  2011-04-05 17:01 ` Erik Faye-Lund
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Adamson @ 2011-04-05 16:29 UTC (permalink / raw)
  To: git

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

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

end of thread, other threads:[~2011-04-05 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 16:29 Value size limits on git config files Jeff Adamson
2011-04-05 17:01 ` Erik Faye-Lund
2011-04-05 17:35   ` Drew Northup
2011-04-05 18:15     ` Erik Faye-Lund

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).