From f3c8fe8006e3e826a918150c3f6e1a2be6e41919 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 19 Sep 2021 19:42:59 +0300
Subject: [PATCH] Avoid repeating files in git uncommitted.

---
 Documents/bin/git-uncommitted | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documents/bin/git-uncommitted b/Documents/bin/git-uncommitted
index 3439a5a..073bb0e 100755
--- a/Documents/bin/git-uncommitted
+++ b/Documents/bin/git-uncommitted
@@ -1,5 +1,7 @@
 #!/bin/sh
 set -eu
 
-git diff --name-only
-git diff --name-only --cached
+{
+    git diff --name-only
+    git diff --name-only --cached
+} | sort -u
-- 
GitLab