@@ -151,10 +151,11 @@ the org link prefix string, or nil for plain text."
151151 (let* ((parts (split-string line " \0 " ))
152152 (hash (car parts))
153153 (rest (cadr parts)))
154- (if link-prefix
155- (concat " [[" link-prefix " :" repo-path " ::" hash " ][" hash " ]]"
156- " " rest)
157- (concat hash " " rest))))
154+ (format " %s %s "
155+ (if link-prefix
156+ (format " [[%s :%s ::%s ][%s ]] " link-prefix repo-path hash hash)
157+ hash)
158+ rest)))
158159
159160(defun magit-standup--collect-commits (repo-path since-date )
160161 " Collect commits from REPO-PATH since SINCE-DATE.
@@ -183,13 +184,13 @@ BRANCH-COMMITS is a cons of (BRANCH-NAME . COMMITS).
183184LINK-PREFIX is the org link prefix string, or nil for plain text.
184185Returns nil when BRANCH-COMMITS has no commits."
185186 (when (cdr branch-commits)
186- (concat " ** ~" (car branch-commits) " ~\n "
187+ (format " ** ~%s ~\n %s \n "
188+ (car branch-commits)
187189 (mapconcat
188190 (lambda (c )
189- (concat " - " (magit-standup--format-commit
190- repo-path c link-prefix)))
191- (cdr branch-commits) " \n " )
192- " \n " )))
191+ (format " - %s " (magit-standup--format-commit
192+ repo-path c link-prefix)))
193+ (cdr branch-commits) " \n " ))))
193194
194195(defun magit-standup--format-org (repo-commits &optional link-prefix )
195196 " Format REPO-COMMITS as `org-mode' text.
@@ -208,9 +209,9 @@ LINK-PREFIX is the org link prefix string, or nil for plain text."
208209 repo-path bc link-prefix))
209210 (cdr entry)))))
210211 (when formatted
211- (concat " * " repo-name " \n \n"
212- ( mapconcat # 'identity formatted " \n " )
213- " \n " ))))
212+ (format " * [[file: %s ][ %s ]] \n\n %s \n "
213+ repo-path repo-name
214+ ( mapconcat # 'identity formatted " \n " ) ))))
214215 repo-commits))
215216
216217(defun magit-standup--gather (&optional since-date repos )
0 commit comments