1
0

pkgs/git-diff-word: Add git shortcut to diff by character

This commit is contained in:
2024-07-31 11:55:03 +02:00
parent e767e3177e
commit 1707de36c2
4 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "git-diff-word";
text = builtins.readFile ./git-diff-word.sh;
runtimeInputs = with pkgs; [
git
];
}

View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
git diff --word-diff=color --word-diff-regex="." "$@"