https://bugs.kde.org/show_bug.cgi?id=424073

--- Comment #5 from Christoph Cullmann <cullm...@kde.org> ---
Sorry that this makes it not that usable for you.

On the other side, a lot of tools do exactly that to e.g. discover their
projects, git will do just the same, just call some git status somewhere, it
will search upwards like Kate does to detect if it is inside a project, up to
the / (for .git/.git/HEAD/HEAD..)

stat("/home/cullmann/tmp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/home/cullmann/tmp/.git", 0x7fff51173db0) = -1 ENOENT (No such file or
directory)
lstat("/home/cullmann/tmp/.git/HEAD", 0x7fff51173c70) = -1 ENOENT (No such file
or directory)
lstat("/home/cullmann/tmp/HEAD", 0x7fff51173c70) = -1 ENOENT (No such file or
directory)
stat("/home/cullmann", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
stat("/home/cullmann/.git", 0x7fff51173db0) = -1 ENOENT (No such file or
directory)
lstat("/home/cullmann/.git/HEAD", 0x7fff51173c70) = -1 ENOENT (No such file or
directory)
lstat("/home/cullmann/HEAD", 0x7fff51173c70) = -1 ENOENT (No such file or
directory)
stat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/home/.git", 0x7fff51173db0)      = -1 ENOENT (No such file or directory)
lstat("/home/.git/HEAD", 0x7fff51173c70) = -1 ENOENT (No such file or
directory)
lstat("/home/HEAD", 0x7fff51173c70)     = -1 ENOENT (No such file or directory)
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/.git", 0x7fff51173db0)           = -1 ENOENT (No such file or directory)
lstat("/.git/HEAD", 0x7fff51173c70)     = -1 ENOENT (No such file or directory)
lstat("/HEAD", 0x7fff51173c70)          = -1 ENOENT (No such file or directory)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to