Skip to content

Commit

Permalink
Add git-annex hook
Browse files Browse the repository at this point in the history
Git annex is used for large file suport and syncing
  • Loading branch information
poelzi committed Nov 4, 2023
1 parent 841208d commit fe1e555
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ clang-format = {
- [commitizen](https://github.com/commitizen-tools/commitizen)
- [gptcommit](https://github.com/zurawiki/gptcommit)
- [convco](https://github.com/convco/convco)
- [annex](https://git-annex.branchable.com/)

## Custom hooks

Expand Down
6 changes: 6 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2202,5 +2202,11 @@ in
"${pkgs.lychee}/bin/lychee${cmdArgs} ${settings.lychee.flags}";
types = [ "text" ];
};

annex = {
name = "annex";
description = "Runs the git-annex hook for large file support";
entry = "${tools.git-annex}/bin/git-annex pre-commit";
};
};
}
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
, elmPackages
, fprettify
, git
, git-annex
, gitAndTools
, gptcommit ? null
, hadolint
Expand Down Expand Up @@ -94,6 +95,7 @@ in
eclint
editorconfig-checker
fprettify
git-annex
go
go-tools
gptcommit
Expand Down

0 comments on commit fe1e555

Please sign in to comment.