Bug reports & patches: git-svn, git-completion, git diff hunk headers for Pascal
Hello!
I've found some bugs in Git:
1. git-svn:
git svn set-tree/dcommit do not respect svn.pathnameencoding config variable although git svn fetch does
here is the my patch - see attach git-svn.patch
2. git-completion
when GIT_PS1_SHOWDIRTYSTATE is set diff.ignoreSubmodules config variable is not respected
here is the my patch - see attach git-completion.bash.patch
3. CLASS procedures/functions are not detected (just procedures/functions do) in hunk headers
for git diff for Pascal files
here is the my patch - see attach userdiff.c.patch
P.S. All patches is against Git v1.7.3.4
mailto:[email protected]
userdiff.c +1 -1
@@ -52,7 +52,7 @@ PATTERNS("objc","|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->" "|[^[:space:]]|[\x80-\xff]+"), PATTERNS("pascal", - "^((procedure|function|constructor|destructor|interface|" + "^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|" "implementation|initialization|finalization)[ \t]*.*)$" "\n" "^(.*=[ \t]*(class|record).*)$",
git-svn.perl +1 -0
@@ -4451,6 +4451,7 @@ sub new { $self->{path_prefix} = length $self->{svn_path} ? "$self->{svn_path}/" : ''; $self->{config} = $opts->{config}; + $self->{pathnameencoding} = Git::config('svn.pathnameencoding'); return $self; }
contrib/completion/git-completion.bash +2 -1
@@ -280,7 +280,8 @@ __git_ps1 () elif [ "true" = "$(git rev-parse --is-inside-work-tree 2>/dev/null)" ]; then if [ -n "${GIT_PS1_SHOWDIRTYSTATE-}" ]; then if [ "$(git config --bool bash.showDirtyState)" != "false" ]; then - git diff --no-ext-diff --quiet --exit-code || w="*" + is=$(git config diff.ignoreSubmodules) + git diff --no-ext-diff --quiet --exit-code --ignore-submodules=$is || w="*" if git rev-parse --quiet --verify HEAD >/dev/null; then git diff-index --cached --quiet HEAD -- || i="+" else
Quoted 1 line · Алексей Крезов
Hello!
Hi,
Quoted 1 line
I've found some bugs in Git:
Thanks for your interest and your patches, but please read Documentation/SubmittingPatches in th git sources. In particular:
* Patches cannot be included without your signoff.
* Please send the patches inline, together with the commit message, so that review is easy, and that our maintener can easily apply it. Doing local commits, and using git send-email will make it easy.
Signature · 2 lines
Matthieu Moy http://www-verimag.imag.fr/~moy/
2010/12/24 Matthieu Moy <[email protected]>:
Quoted 10 lines
Quoted 1 line · Алексей Крезов
Hello!
Hi,
Quoted 1 line
I've found some bugs in Git:
Thanks for your interest and your patches, but please read
Documentation/SubmittingPatchesin th git sources. In particular:
for your convenience:
https://github.com/git/git/blob/master/Documentation/SubmittingPatches
Signature · 2 lines
Cheers, Ray Chuan