Skip to content

Commit e236959

Browse files
geekygirldawnjgbarah
authored andcommitted
corrected minor typos and improved wording
1 parent 2567ca2 commit e236959

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

perceval/git.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Retriving git metadata
1+
# Retrieving git metadata
22

3-
Git is the most popular source code management system. Is is usually used to track versions of source code files. Transactions on a git repositories are called "commits". Each commit is an atomic change to the files in the repository. For each commit, git maintains data for tracking what changed, and some metadata about who committed the change, when, which files were affected, etc. Perceval retrieves this information, and produces a JSON document \(a dictionary when using it from Python\) for each commit.
3+
Git is the most popular source code management system. It is usually used to track versions of source code files. Transactions on a git repositories are called "commits". Each commit is an atomic change to the files in the repository. For each commit, git maintains data for tracking what changed, and some metadata about who committed the change, when, which files were affected, etc. Perceval retrieves this information, and produces a JSON document \(a dictionary when using it from Python\) for each commit.
44

55
## Using Perceval as a program
66

@@ -143,7 +143,7 @@ for commit in repo.fetch():
143143
print(commit['data']['commit'])
144144
```
145145

146-
This code imports the `perceval.backends` module, and then produces an object of the `perceval.backends.git.Git` class. All classes of this kind include a method for fetching the items retrieved by the Perceval backend, as an iterator: `fetch()`. In the last two lines of the script, we iterate through that iterator, printing the hash for all commmits fetched. The output of the script is like:
146+
This code imports the `perceval.backends` module, and then produces an object of the `perceval.backends.git.Git` class. All classes of this kind include a method for fetching the items retrieved by the Perceval backend, as an iterator: `fetch()`. In the last two lines of the script, we iterate through that iterator, printing the hash for all commmits fetched. The output of the script looks like:
147147

148148
```bash
149149
(perceval) $ python3 perceval_git_1.py
@@ -187,4 +187,4 @@ To run it, just provide those two command line arguments: repository url and dir
187187

188188
```bash
189189
$ python3 perceval_git_counter.py https://github.com/grimoirelab/perceval.git /tmp/clonedir
190-
```
190+
```

0 commit comments

Comments
 (0)