Skip to content

Commit bccfd94

Browse files
committed
just: add recipe git-create-patch
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 6927924 commit bccfd94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

justfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ term:
1717
term-kill:
1818
zellij delete-session qownnotesapi -f
1919

20+
# Apply the patch to the qownnotesapi repository
2021
git-apply-patch:
2122
git apply {{ transferDir }}/qownnotesapi.patch
2223

24+
# Create a patch from the staged changes in the qownnotesapi repository
25+
@git-create-patch:
26+
echo "transferDir: {{ transferDir }}"
27+
git diff --no-ext-diff --staged --binary > {{ transferDir }}/qownnotesapi.patch
28+
ls -l1t {{ transferDir }}/ | head -2
29+
2330
# Format all justfiles
2431
just-format:
2532
#!/usr/bin/env bash

0 commit comments

Comments
 (0)