Skip to content

Commit

Permalink
Small tweaks before release
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek committed Oct 14, 2021
1 parent f89bf13 commit 7f51da0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.gitattributes export-ignore
/.gitlab-ci.yml export-ignore
/build export-ignore
/docs
/docs export-ignore
/phpcs.xml.dist export-ignore
/phpmd.xml.dist export-ignore
/phpunit.xml.dist export-ignore
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

This package is intended to give a usefull option

## Usage
```php
try {
$retriever = Retriever::getWithFactory(GitHashFinderFactory::withDefaultFinders());
echo $retriever->getHash($path)->hash() . PHP_EOL;
} catch (GitHashException $exception) {
echo 'Failed to get the hash ' . $exception->getMessage() . PHP_EOL;
}
```

## Examples
See docs/examples for examples about how to use this package.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Get the current git hash from your project.",
"keywords": [
"tjvb",
"githash"
"githash",
"hash"
],
"license": "MIT",
"authors": [
Expand Down

0 comments on commit 7f51da0

Please sign in to comment.