git-commit-vandalism/contrib/fast-import
Jing Xue 4c2d5d722c Add 'git-p4.allowSubmit' to git-p4
I'm working with a perforce repo using git-p4. There are some config
files which I need to change locally according to my environment. I'm
using a 'local' git branch to park these changes. And I want to avoid
accidentally checking them into p4 just by doing "git p4 submit"
mindlessly without realizing which branch I'm actually on.

This patch adds a new git config, 'git-p4.allowSubmit', which is a
whitelist of branch names. "git p4 submit" will only allow submissions
from local branches on the list. Useful for preventing inadvertently
submitting from a strictly local branch.

For backward compatibility, if this config is not set at all,
submissions from all branches are allowed.

Signed-off-by: Jing Xue <jingxue@digizenstudio.com>
Acked-By: Simon Hausmann <simon@lst.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-06-26 12:10:42 -07:00
..
git-import.perl contrib/fast-import: add perl version of simple example 2007-09-18 03:14:18 -07:00
git-import.sh contrib/fast-import: add simple shell example 2007-09-18 03:14:16 -07:00
git-p4 Add 'git-p4.allowSubmit' to git-p4 2008-06-26 12:10:42 -07:00
git-p4.bat Make the command call silent 2007-05-15 16:07:41 +02:00
git-p4.txt Mention remotes/p4/master also in the documentation. 2007-06-11 23:30:23 +02:00
import-tars.perl Merge branch 'maint' 2007-05-16 12:43:05 -07:00