git-p4: add option to keep empty commits
commit4ae048e67e5f0d786b9febc438433d95f18e5937
authorLars Schneider <larsxschneider@gmail.com>
Tue, 8 Dec 2015 09:36:22 +0000 (8 10:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Dec 2015 18:45:02 +0000 (10 10:45 -0800)
treeee9c8f52b855abe106f5f749d4added0f09a5f6a
parent120c585b229096595b4e54801a538cbef16c8240
git-p4: add option to keep empty commits

A changelist that contains only excluded files due to a client spec was
imported as an empty commit. Fix that issue by ignoring these commits.
Add option "git-p4.keepEmptyCommits" to make the previous behavior
available.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Helped-by: Pete Harlan
Acked-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-p4.txt
git-p4.py
t/t9826-git-p4-keep-empty-commits.sh [new file with mode: 0755]