2016-09-15 6 views
1

2つのコマンドは2つのコミット間で1行形式のログ、および概要を示すことがあります。git - 短いログと変更された要約を一緒に表示できますか?

$ git log --oneline -3 
450a63c Add some tests for enum option scoped 
4a959f7 Make enum values children of enums when option scoped is specified on the enum, and handle this in the C++ generator by prefixing the enum values with the name of the enum type. 
b1649ac Add option scope to EnumOptions 

$ git diff --stat --summary b1649ac..450a63c 
benchmarks/readme.txt    | 22 +++++++++------------- 
csharp/src/Reflection/Descriptor.cs | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------ 
docs/third_party.md     | 1 + 
protobuf.bzl      | 4 ++-- 

すると、それは、それぞれが変更された要約と一緒にコミット示しすることは可能ですか?

$ git ??? 
450a63c Add some tests for enum option scoped 
benchmarks/readme.txt    | 22 +++++++++------------- 

4a959f7 Make enum values children of enums 
docs/third_party.md     | 1 + 
protobuf.bzl      | 4 ++-- 

b1649ac Add option scope to EnumOptions 
csharp/src/Reflection/Descriptor.cs | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------ 

答えて

2
git log --oneline --stat

例:次のような

 
2a85630 Fix bug, export button cannot export value '0' 
forms/gridfield/GridFieldExportButton.php   | 2 +- 
tests/forms/gridfield/GridFieldExportButtonTest.php | 18 ++++++++++++++++-- 
tests/forms/gridfield/GridFieldExportButtonTest.yml | 2 ++ 
3 files changed, 19 insertions(+), 3 deletions(-) 

c401d9d new added hide_from_cms_tree and hide_from_hierarchy 
model/Hierarchy.php   | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 
tests/model/HierarchyTest.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 
tests/model/HierarchyTest.yml | 12 ++++++++++++ 
3 files changed, 121 insertions(+), 6 deletions(-) 

79d0590 BUG Fix singleton('DBLocale') 
model/fieldtypes/DBLocale.php | 2 +- 
1 file changed, 1 insertion(+), 1 deletion(-)
+0

パーフェクト、ありがとう! – Deqing

+0

私は "git log --online --stat --first-parent"を推奨します。これにより、マージにも統計情報が表示されますが、これは他のブランチでのコミットを省略します(私はボーナスとみなします)。 –

関連する問題