2016-05-29 8 views
1

たとえば、this commitを見てください。 2人のユーザーが@unionalと@blakeembrey両方、ここで示される方法GitHubがコミットを1人のユーザによってコミットされたものとして表示させる原因*別のユーザと*

enter image description here

注意してください。

この原因は何ですか?


EDITいくつかのさらなる研究は:

$ git clone [email protected]:typings/typings.git 
$ cd typings 
$ git show abea10b5787e1a18634d5f37bb2fa56550c32fd1 
commit abea10b5787e1a18634d5f37bb2fa56550c32fd1 
Author: Homa Wong <[email protected]> 
Date: Thu May 26 09:47:58 2016 -0700 

    Update `bundle` help (#557) 

diff --git a/src/bin-bundle.ts b/src/bin-bundle.ts 
index 8e6dd26..2af3599 100644 
--- a/src/bin-bundle.ts 
+++ b/src/bin-bundle.ts 
@@ -5,11 +5,10 @@ import { bundle } from 'typings-core' 

export function help() { 
    return ` 
-typings bundle --out <directory> 
+typings bundle --out <filepath> 

Options: 
- [--out|-o] <directory> The bundled output directory 
- [--name] <name>  Bundle module name 
+ [--out|-o] <filepath> The bundled output file path 
    [--global|-G]   Bundle as an global definition 
` 
} 

興味深いことにコミットに言及しただけで一人のユーザー(unional)があります。これはGitHubに保存されている追加のメタデータですか?


EDIT 2実際にはgit showがフルパッチメタデータを与えないようです。 gitkを使用して私の代わりにこれを参照してください。

ここ
Author: Homa Wong <[email protected]> 2016-05-26 17:47:58 
Committer: Blake Embrey <[email protected]> 2016-05-26 17:47:58 
Parent: b79fd3f0f9af245a790717dcb5493fb49db2788d (Update README.md to add example of dt install (#547)) 
Branches: master, remotes/origin/master 
Follows: v1.0.4 
Precedes: 

    Update `bundle` help (#557) 

我々は異なる作者とコミッタを参照してください。これは統合されたものではなく元に戻されたPRだったようです。

+0

著者コミッタ –

+0

対プルリクエストをマージひとつです@ IsmailBadawi、それはそれだとは思わない。私の編集を参照してください。 –

答えて

1

マージ squash commitです。 1が結合することにより、プルリクエスト/ブランチをマージするとき、すべてのコミットを一つの大きなにコミットし、人々:

  • マージされるブランチにコミットプルリクエストを作成し、プルリクエストを合併

は、作成されたコミットにコミッターとして表示されます。どうやらプルリクエストを作成した人はコミットに自分のIDを持つようになり、個人を作った人はコミットして押しつぶしてメタデータとして保存されます。この場合

  • unionalだけ
  • blakeembreyをコミットプル要求を作成して作られたものであるが
+0

マージコミットの場合、なぜ親は1つしかありませんか? –

+0

@DrewNoakes待って、[従来のマージではありません!](https://github.com/blog/2141-squash-your-commits) – dorukayhan

関連する問題