diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-02-05 20:30:37 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-02-05 20:30:37 -0500 |
commit | 6c3aac1c69ea0bcb2896bec96a01fdf8aa6176fa (patch) | |
tree | d4e97e98f2e35c3bab930fae3d5112bf02919320 /git-applymbox.sh | |
parent | Reduce memory usage of fast-import. (diff) | |
download | tgif-6c3aac1c69ea0bcb2896bec96a01fdf8aa6176fa.tar.xz |
Don't support shell-quoted refnames in fast-import.
The current implementation of shell-style quoted refnames and
SHA-1 expressions within fast-import contains a bad memory leak.
We leak the unquoted strings used by the `from` and `merge`
commands, maybe others. Its also just muddling up the docs.
Since Git refnames cannot contain LF, and that is our delimiter
for the end of the refname, and we accept any other character
as-is, there is no reason for these strings to support quoting,
except to be nice to frontends. But frontends shouldn't be
expecting to use funny refs in Git, and its just as simple to
never quote them as it is to always pass them through the same
quoting filter as pathnames. So frontends should never quote
refs, or ref expressions.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-applymbox.sh')
0 files changed, 0 insertions, 0 deletions