+ checkpatch-fix-detection-of-git-repository.patch added to -mm tree
Subject: + checkpatch-fix-detection-of-git-repository.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 31 Jan 2014 13:57:28 -0800
The patch titled
Subject: checkpatch: fix detection of git repository
has been added to the -mm tree. Its filename is
checkpatch-fix-detection-of-git-repository.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/checkpatch-fix-detection-of-git-repository.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-fix-detection-of-git-repository.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Richard Genoud <[email protected]>
Subject: checkpatch: fix detection of git repository
Since git v1.7.7, the .git directory can be a file when, for example, the kernel is a submodule of another git super project. So, the check "-d .git" is not working anymore in this case. Using a more generic check like "-e .git" corrects this behaviour.
---
scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-fix-detection-of-git-repository +2 -2
@@ -471,7 +471,7 @@ sub seed_camelcase_includes { $camelcase_seeded = 1; - if (-d ".git") { + if (-e ".git") { my $git_last_include_commit = `git log --no-merges --pretty=format:"%h%n" -1 -- include`; chomp $git_last_include_commit; $camelcase_cache = ".checkpatch-camelcase.git.$git_last_include_commit";
@@ -499,7 +499,7 @@ sub seed_camelcase_includes { return; } - if (-d ".git") { + if (-e ".git") { $files = `git ls-files "include/*.h"`; @include_files = split('\n', $files); }
_
Patches currently in -mm which might be from [email protected] are
origin.patch get_maintainer-fix-detection-of-git-repository.patch checkpatch-fix-detection-of-git-repository.patch