diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-09-09 20:38:05 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-09-09 20:39:47 -0400 |
commit | 8938410189315979255c1dfcc3c0b7a4bf9953e5 (patch) | |
tree | 36c44b378b9b34c7bf5a9c39883444590f1e1c7d /lib | |
parent | git-gui: Assume untracked directories are Git submodules (diff) | |
download | tgif-8938410189315979255c1dfcc3c0b7a4bf9953e5.tar.xz |
git-gui: Trim trailing slashes from untracked submodule names
Oddly enough `git ls-files --others` supplies us the name of an
untracked submodule by including the trailing slash but that
same git version will not accept the name with a trailing slash
through `git update-index --stdin`. Stripping off that final
slash character before loading it into our file lists allows
git-gui to stage changes to submodules just like any other file.
This change should give git-gui users some basic submodule support,
but it is strictly at the plumbing level as we do not actually know
about calling the git-submodule porcelain that is a recent addition
to git 1.5.3.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions