官术网_书友最值得收藏!

  • Mastering Git
  • Jakub Nar?bski
  • 219字
  • 2021-07-09 19:37:29

Summary

This chapter showed us the various ways of exploring project history: finding relevant revisions, selecting and filtering revisions to display, and formatting the output.

We started with the description of the conceptual model of project history: the Directed Acyclic Graph (DAG) of revisions. Understanding this concept is very important because many selection tools refer directly or indirectly to the DAG.

Then, you learnt how to select a single revision and the range of revisions. We can use this knowledge to see what changes were made on a branch since its pergence from the base branch, and to find all the revisions which were made by the given developer.

We can even try to find bugs in the code by exploring the history: finding when a function was deleted from the code with a pickaxe search, examining a file for how its code came to be and who wrote it with git blame, and utilizing semi-automatic or automatic searches through the project history to find which version introduced regression with git bisect.

When examining a revision, we can select the format in which the information is shown, even to the point of user-defined formats. There are various ways of summarizing the information, from the statistics of the changed files to the statistics of the number of commits per author.

主站蜘蛛池模板: 双柏县| 应城市| 晋江市| 昌邑市| 乐陵市| 彰武县| 乐清市| 南通市| 洞头县| 交口县| 广平县| 平泉县| 鲁甸县| 尤溪县| 深泽县| 贺州市| 新巴尔虎左旗| 阳高县| 萍乡市| 南宁市| 大新县| 民乐县| 黄平县| 遂宁市| 灵石县| 潞西市| 长宁县| 临泉县| 乌拉特中旗| 林周县| 神农架林区| 永泰县| 大荔县| 彰化市| 开平市| 望江县| 龙川县| 沁水县| 璧山县| 桦南县| 黄梅县|