소스 검색

Added examples for git_log_to_array.py

ossv 6 년 전
부모
커밋
12af028173
2개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      code/examples/GitlogToArray.md
  2. 0 0
      code/examples/data/gitlog.json

+ 17 - 0
code/examples/GitlogToArray.md

@@ -0,0 +1,17 @@
+## Convert a gitlog to an array
+
+To convert a gitlog to an array of commits, one can use the [git_log_to_array.py](../fetch_jira_bugs/git_log_to_array.py) script. It requires a local copy of the git repository that is aimed to be analyzed. As an example one can use the [Jenkins repository](https://github.com/jenkinsci/jenkins).
+
+First clone the repository to a location of your own choice.
+
+```bash
+git clone https://github.com/jenkinsci/jenkins
+```
+
+Then decide from which commit the script should produce an array from. In this example the following commit was chosen, [02d6908ada70fcf8012833ddef628bc09c6f8389](https://github.com/jenkinsci/jenkins/commit/02d6908ada70fcf8012833ddef628bc09c6f8389). Then run the script using:
+
+```bash
+python git_log_to_array.py --repo-path <path_to_cloned_repo>/jenkins --from-commit 02d6908ada70fcf8012833ddef628bc09c6f8389
+```
+
+The results from the script will be assembled in the file *gitlog.json*. An example of this run can be found in [data/gitlog.json](./data/gitlog.json).

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
code/examples/data/gitlog.json


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.