about summary refs log tree commit diff
path: root/notemap.1
diff options
context:
space:
mode:
Diffstat (limited to 'notemap.1')
-rw-r--r--notemap.143
1 files changed, 42 insertions, 1 deletions
diff --git a/notemap.1 b/notemap.1
index 0855524..0c8a9b4 100644
--- a/notemap.1
+++ b/notemap.1
@@ -3,7 +3,8 @@
 .Os
 .
 .Sh NAME
-.Nm notemap
+.Nm notemap ,
+.Nm git-notemap
 .Nd mirror notes to IMAP
 .
 .Sh SYNOPSIS
@@ -16,6 +17,16 @@
 .Ar user
 .Op Ar
 .
+.Nm git
+.Cm notemap
+.Op Fl afv
+.Op Fl M Ar mailbox
+.Op Fl h Ar host
+.Op Fl m Ar file
+.Op Fl p Ar port
+.Op Fl u Ar user
+.Op Ar
+.
 .Sh DESCRIPTION
 The
 .Nm
@@ -49,6 +60,15 @@ or standard input if
 is used.
 .
 .Pp
+The
+.Nm git-notemap
+wrapper uses
+.Xr git-config 1
+and
+.Xr gitcredentials 7
+for defaults and authentication.
+.
+.Pp
 The arguments are as follows:
 .Bl -tag -width Ds
 .It Fl M Ar mailbox
@@ -76,9 +96,30 @@ Log IMAP protocol to standard error.
 Read the password from standard input.
 .El
 .
+.Pp
+The
+.Nm git-notemap
+wrapper loads defaults
+from the following
+.Xr git-config 1
+options:
+.Cm notemap.imapServer ,
+.Cm notemap.imapServerPort ,
+.Cm notemap.imapUser ,
+.Cm notemap.imapPass ,
+.Cm notemap.imapMailbox ,
+.Cm notemap.mapFile .
+If
+.Cm notemap.imapPass
+is unset,
+the password is obtained through
+.Xr gitcredentials 7 .
+.
 .Sh EXAMPLES
 .Bd -literal
 notemap -a june@causal.agency note.txt
+git config notemap.imapUser june@causal.agency
+git notemap note.txt
 .Ed
 .
 .Sh STANDARDS