This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hack: disable icons for untracked files
Since there is a breaking change in Magit's internals and I've been unable to find a way to get the patch working without it erroring.
- Loading branch information
Showing
3 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ _: { | |
|
||
magit-file-icons = pkgs.emacsPackages.trivialBuild rec { | ||
pname = "magit-file-icons"; | ||
version = "v3.0.0"; | ||
version = "v3.0.1"; | ||
|
||
src = ../.; | ||
|
||
|
@@ -24,11 +24,28 @@ _: { | |
pkgs.emacsPackages.magit | ||
] ++ packageRequires; | ||
|
||
checkPhase = '' | ||
emacs -l package -f package-initialize --batch -l ert -l magit-file-icons.el -l ./test/magit-file-icons-tests.el -f ert-run-tests-batch-and-exit | ||
git init | ||
emacs -l package -f package-initialize --batch -l ert -l magit-file-icons.el -l ./test/magit-file-icons-git-repo-tests.el -f ert-run-tests-batch-and-exit | ||
''; | ||
checkPhase = | ||
let | ||
createGitRepoStateScript = pkgs.writeShellScriptBin "init" '' | ||
git init | ||
git config user.email "[email protected]" | ||
git config user.name "John Doe" | ||
touch staged.txt unstaged.txt untracked.txt rename.txt | ||
git add staged.txt unstaged.txt rename.txt && git commit -m "init" | ||
mv rename.txt renamed.txt && git add rename.txt renamed.txt && git commit -m "rename" | ||
echo "staged changes" >> staged.txt && git add staged.txt | ||
echo "unstaged changes" >> unstaged.txt | ||
''; | ||
in | ||
'' | ||
emacs -l package -f package-initialize --batch -l ert -l magit-file-icons.el -l ./test/magit-file-icons-tests.el -f ert-run-tests-batch-and-exit | ||
${createGitRepoStateScript}/bin/init # create staged changes (including file rename) and unstaged changes | ||
emacs -l package -f package-initialize --batch -l ert -l magit-file-icons.el -l ./test/magit-file-icons-git-repo-tests.el -f ert-run-tests-batch-and-exit | ||
''; | ||
|
||
meta = { | ||
license = lib.licenses.gpl3; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters