]> git.armaanb.net Git - stagit.git/commit
resolve absolute paths to repodir, remove basename just use strrchr.
authorHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 27 Apr 2016 17:19:50 +0000 (19:19 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Wed, 27 Apr 2016 17:19:50 +0000 (19:19 +0200)
commit8df54926f2ad80ae46a4cc701f3341e97839e0c8
treea93c6821454f166f9a6c62fcfadf215d1ca6ae97
parent70b777831a80a7a204f02697563d39dba612c8c4
resolve absolute paths to repodir, remove basename just use strrchr.

- resolve repodir, for example: stagit-index ../ used to use ".." as the name,
  now it will resolve to the real directory name.
- just use strrchr(path, '/') instead of basename, '/' path separator is now
  used.
stagit-index.c
stagit.c