https://github.com/balance-platform/git_hist
https://github.com/balance-platform/git_hist
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/balance-platform/git_hist
- Owner: balance-platform
- Created: 2021-02-08T07:26:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-15T22:19:11.000Z (over 4 years ago)
- Last Synced: 2025-03-25T11:21:29.095Z (3 months ago)
- Language: Elixir
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHist
[](https://hexdocs.pm/git_hist)
[](https://hex.pm/packages/git_hist)
[](https://hex.pm/packages/git_hist)
[](https://hex.pm/packages/git_hist)
[](https://github.com/balance-platform/git_hist/commits/master)
Documentation for `GitHist`.
This library helps to get file history (Mostly in couple with task-tracker)
For example, I have an Api and want to show tasks history for users
```elixir
defmodule FooApi do
use GitHist, filter_by_regex: ~r/JIRA-\d?/...
end
```After this module has new method: commit_history
```elixir
FooApi.commit_history() # =>
[
"JIRA-1 Initial of Foo API",
"JIRA-13 Bugfix of method bar",
...
"JIRA-245 New method added - zar"
]
```# Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `git_hist` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:git_hist, "~> 0.1.0"}
]
end
```