A peer-to-peer stack for code collaboration
Show diff and issue number when creating. (#456)
James Haydon0b2dd563d5b3
diff --git a/bin/rad-diff b/bin/rad-diffindex 25640b6..af3d9b6 100755--- a/bin/rad-diff+++ b/bin/rad-diff@@ -144,8 +144,10 @@:author-name author-name:author-email author-email:patch patch})- (simple-create-diff! machine diff)- (put-str! (string-append "Proposing " short-hash " to " machine))))+ (match (simple-create-diff! machine diff)+ ['n] (put-str! (string-append "Proposing #" (show n)+ " to " machine))+ _ (put-str! "Diff proposed but unexpected results returned."))));; showing diffsdiff --git a/bin/rad-issues b/bin/rad-issuesindex 5b76710..910d50e 100755--- a/bin/rad-issues+++ b/bin/rad-issues@@ -187,7 +187,9 @@")(def i (read (edit-in-editor! template)))(def author {:git-username (get-git-username!)})- (create-issue! machine (simple-issue (<> i author)))))+ (match (create-issue! machine (simple-issue (<> i author)))+ ['n] (put-str! (string-append "Created issue #" (show n) " in " machine))+ _ (put-str! "Issue created but unexpected results returned."))))(def cmd-options[diff --git a/rad/monadic/diff-remote.rad b/rad/monadic/diff-remote.radindex 34b83ed..48adee0 100644--- a/rad/monadic/diff-remote.rad+++ b/rad/monadic/diff-remote.rad@@ -125,7 +125,8 @@(<> i{:number n})))(set-diffs (@ n) i_)- (noncer [:use (lookup :nonce i)])))+ (noncer [:use (lookup :nonce i)])+ n))(def over-diffs"A helper to modify stuff in the diff ref."diff --git a/rad/monadic/issue-remote.rad b/rad/monadic/issue-remote.radindex 16f42d8..2dd3384 100644--- a/rad/monadic/issue-remote.rad+++ b/rad/monadic/issue-remote.rad@@ -183,7 +183,8 @@{:number n:comments (map strip-input (lookup :comments fixed))})))(set-issues (@ n) i_)- (noncer [:use (lookup :nonce i)])))+ (noncer [:use (lookup :nonce i)])+ n))(def add-comment"Add a comment to an issue."