Added credentials
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
git-credentials-unlock-expires
|
||||
git-credentials-set!
|
||||
git-credentials-ref
|
||||
git-credentials-configured?
|
||||
git-credentials-remove!)
|
||||
|
||||
(define git-credentials-store 'racket-git)
|
||||
@@ -199,6 +200,13 @@
|
||||
(store-write (current-git-credentials-store) ini)
|
||||
(void))
|
||||
|
||||
(define (git-credentials-configured? remote)
|
||||
(define section (credential-section remote))
|
||||
(define username (store-get (current-git-credentials-store) section 'username #f))
|
||||
(define encrypted (store-get (current-git-credentials-store) section 'token #f))
|
||||
(and (string? username) (not (string=? username ""))
|
||||
(string? encrypted) (not (string=? encrypted ""))))
|
||||
|
||||
(define (git-credentials-ref remote)
|
||||
(define section (credential-section remote))
|
||||
(define username (store-get (current-git-credentials-store) section 'username #f))
|
||||
|
||||
Reference in New Issue
Block a user