merge-one-file: remove empty directories
authorJunio C Hamano <junkio@cox.net>
Sun, 20 Nov 2005 03:50:44 +0000 (19:50 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 20 Nov 2005 03:50:44 +0000 (19:50 -0800)
commit397c76697f898e0341699fba8ef783f3342329c7
treeea62f7003bb2769fa23d5ca371d84cee9d2ec46f
parent22a06b3c474d256e945dbc0d2a830c3f467288b5
merge-one-file: remove empty directories

When the last file in a directory is removed as the result of a
merge, try to rmdir the now-empty directory.

[jc: We probably could use "rmdir -p", but for now we do that by
hand for portability.]

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge-one-file.sh