Skip to content

Commit

Permalink
git: Adding Delta for git diffs.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Dec 17, 2024
1 parent cbdadf3 commit 66e4b30
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/git/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
community.general.homebrew:
name: git
state: present

- name: "Git | MacOSX | Install git-delta"
community.general.homebrew:
name: git-delta
state: present
21 changes: 21 additions & 0 deletions roles/git/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,27 @@
scope: global
value: zebra

- name: "Git | Set [delta] config"
block:
- name: "Git | Set core.pager"
community.general.git_config:
name: core.pager
scope: global
value: "delta"

- name: "Git | Set delta interactive.diffFilter"
community.general.git_config:
name: delta.interactive.diffFilter
scope: global
value: "delta --color-only --features=interactive"

- name: "Git | Set Delta Negative"
community.general.git_config:
name: delta.negative
scope: global
value: true


- name: "Git | Set fetch.prune"
community.general.git_config:
name: fetch.prune
Expand Down

0 comments on commit 66e4b30

Please sign in to comment.