chiark / gitweb /
Emacs mode: automatically cd up to root of worktree
authorKarl Hasselström <kha@treskal.com>
Wed, 14 May 2008 00:04:32 +0000 (02:04 +0200)
committerKarl Hasselström <kha@treskal.com>
Wed, 14 May 2008 00:04:32 +0000 (02:04 +0200)
commit52144ce5f2bfb1268aee4a9999821987f8892dbf
tree97c245e3e3bd4ac00d3b1b950939bfc198a2b8fc
parentdef828cfb469ba358ae156f7f019dd0c013ef7df
Emacs mode: automatically cd up to root of worktree

git's emacs mode automatically finds the root of the worktree, so that
the user doesn't have to. Teach StGit's emacs mode the same trick by
borrowing the git-get-top-dir function from git.

The borrowed code was written by Alexandre Julliard <julliard@winehq.org>.

Signed-off-by: Karl Hasselström <kha@treskal.com>
contrib/stgit.el