File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ csc -static -unit listicles -cJ listicles.scm
3535
3636echo " Building private_comments executable..."
3737
38- csc -link masufiles \
38+ csc -link masutils \
39+ -link masufiles \
3940 -link pathname-expand \
4041 -static private_comments.scm
4142
Original file line number Diff line number Diff line change 3333(import spiffy-request-vars)
3434(import uri-common)
3535(import shell)
36+ (import masutils)
3637(import masufiles)
3738
3839;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
226227;
227228(define (handle-comment add-or-delete params)
228229 ;TODO Update headers to specify
229- (if (has-required-keys? params)
230- (let ((project-hash (cdr (assoc 'project_name_hash params)))
231- (file-path-hash (cdr (assoc 'file_path_hash params)))
232- (line-no (cdr (assoc 'line_number params)))
233- (treeish (cdr (assoc 'treeish params))))
230+ (if (and
231+ (has-required-keys? params)
232+ (not (or
233+ (== (alist-ref 'treeish params) "00000000")
234+ (null? (alist-ref 'treeish params)))))
235+
236+ (let ((project-hash (alist-ref 'project_name_hash params))
237+ (file-path-hash (alist-ref 'file_path_hash params))
238+ (line-no (alist-ref 'line_number params))
239+ (treeish (alist-ref 'treeish params)))
234240 (let* (
235241 (project-dir (list->path (list base-directory project-hash)))
236242 (treeish-dir (list->path (list base-directory project-hash treeish)))
You can’t perform that action at this time.
0 commit comments