1
0
mirror of https://github.com/git/git.git synced 2024-09-30 16:01:40 +02:00
git/lib
Michele Ballabio 2d19f8e921 git-gui: show unstaged symlinks in diff viewer
git-gui has a minor problem with regards to symlinks that point
to directories.

	git init
	mkdir realdir
	ln -s realdir linkdir
	git gui

Now clicking on file names in the "unstaged changes" window,
there's a problem coming from the "linkdir" symlink: git-gui
complains with

	error reading "file4": illegal operation on a directory

...even though git-gui can add that same symlink to the index just
fine.

This patch fix this by adding a check.

[sp: Minor fix to use {link} instead of "link" in condition
     and to only open the path if it is not a symlink.]

Signed-off-by: Michele Ballabio <barra_cuda@katamail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-09-09 19:47:22 -04:00
..
blame.tcl
branch_checkout.tcl
branch_create.tcl
branch_delete.tcl
branch_rename.tcl
branch.tcl
browser.tcl
checkout_op.tcl
choose_rev.tcl
class.tcl
commit.tcl
console.tcl
database.tcl
diff.tcl git-gui: show unstaged symlinks in diff viewer 2007-09-09 19:47:22 -04:00
encoding.tcl
error.tcl
index.tcl
merge.tcl
option.tcl
remote_branch_delete.tcl
remote.tcl
shortcut.tcl
status_bar.tcl
transport.tcl