[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vc-jj ead089c231 43/58: Use "jj file track" in vc-jj-re
From: |
ELPA Syncer |
Subject: |
[elpa] externals/vc-jj ead089c231 43/58: Use "jj file track" in vc-jj-register |
Date: |
Sat, 15 Mar 2025 07:01:53 -0400 (EDT) |
branch: externals/vc-jj
commit ead089c231f5700c082804b943a168f018057bcf
Author: Rudi Schlatte <rudi@constantly.at>
Commit: Rudi Schlatte <rudi@constantly.at>
Use "jj file track" in vc-jj-register
Remark that this is usually a no-op since jj registers all new files
anyway.
---
vc-jj.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/vc-jj.el b/vc-jj.el
index 9b2d009c4b..3ee9b1d50a 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -247,13 +247,14 @@ self.immutable(), \"\\n\"
(call-process vc-jj-program nil nil nil "git" "init" "--colocate")
(call-process vc-jj-program nil nil nil "git" "init")))
-(defun vc-jj-register (_files &optional _comment)
- "Make sure all changes are registered by jj.
-Note that jj auto-registers all changes (there is no staging area
-or notion of uncommitted changes), so we ignore arguments to this
-function."
- ;; Any jj command picks up changes when run, so 'status' will do.
- (vc-jj--call-jj "status"))
+(defun vc-jj-register (files &optional _comment)
+ "Register FILES into the jj version-control system."
+ ;; This is usually a no-op since jj auto-registers all files, so we
+ ;; just need to run some jj command so new files are picked up. We
+ ;; run "jj file track" for the case where some of FILES are excluded
+ ;; via the "snapshot.auto-track" setting or via git's mechanisms
+ ;; such as the .gitignore file.
+ (apply #'vc-jj--call-jj "file" "track" files))
(defun vc-jj-delete-file (file)
"Delete the file and make sure jj registers the change."
- [elpa] externals/vc-jj 413ecc82c5 52/58: add vc-jj-pull, (continued)
- [elpa] externals/vc-jj 413ecc82c5 52/58: add vc-jj-pull, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 23db0c6751 54/58: Use vc-jj-program in vc-push, vc-pull defaults, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 71a84c08fe 58/58: Add cl-lib dependency, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 616c2aea6f 15/58: Merge #1 and #2: Fix and improve vc-dir, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 290cd89ad8 57/58: Try to make vc-dir more performant, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 56bacbe747 55/58: Remove vc-jj--call-jj, use vc-switches, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 24161b5249 19/58: Differentiate between added and modified files in `vc-jj-state`, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 117c75b740 20/58: Better mode-line indicator, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 5df3902990 33/58: Add .gitignore, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 1ec756866d 39/58: Fix byte-compilation warnings, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj ead089c231 43/58: Use "jj file track" in vc-jj-register,
ELPA Syncer <=
- [elpa] externals/vc-jj 8a90a91263 21/58: Refactor vc-jj-dir-extra-headers, ELPA Syncer, 2025/03/15
- [elpa] externals/vc-jj 3dd1103608 41/58: Show immutable status in vc-dir headers, ELPA Syncer, 2025/03/15