Can somebody explain the usage of git range-diff?

后端 未结 4 973
清酒与你
清酒与你 2020-12-17 19:25

Git version 2.19 introduces git range-diff which is supposed to be used in order to compare two commit ranges. I have been reading the documentation, but I cann

4条回答
  •  误落风尘
    2020-12-17 19:31

    A "range" in Git parlance is a pair of revision identifiers (start and end).

    The first form of usage for git range-diff is . Since we know a range is a pair of revision identifiers, some possible examples are:

    abc1234..def5678 9876foo..5432bar
    HEAD..def5678 my_release_1_1..my_release_1_2
    

    The other two forms of usage are for convenience when some of the four revision identifiers are the same as each other. Namely:

    1. For a case like abc..def def..abc, you can simply specify def...abc.
    2. For a case like abc..def abc..xyz, you can specify abc def xyz. This seems like a common case to me: you want to compare two ranges which start at the same point.

提交回复
热议问题