Skip to content

Commit

Permalink
just: add recipe git-create-patch
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Sep 17, 2024
1 parent 6927924 commit bccfd94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ term:
term-kill:
zellij delete-session qownnotesapi -f

# Apply the patch to the qownnotesapi repository
git-apply-patch:
git apply {{ transferDir }}/qownnotesapi.patch

# Create a patch from the staged changes in the qownnotesapi repository
@git-create-patch:
echo "transferDir: {{ transferDir }}"
git diff --no-ext-diff --staged --binary > {{ transferDir }}/qownnotesapi.patch
ls -l1t {{ transferDir }}/ | head -2

# Format all justfiles
just-format:
#!/usr/bin/env bash
Expand Down

0 comments on commit bccfd94

Please sign in to comment.