diff options
author | Tom Willemse | 2013-05-05 18:18:18 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-05 18:18:18 +0200 |
commit | 387e3f1c677305cff2d104bcc6f23d6905b19335 (patch) | |
tree | 9b78583b27d682247cb2f3adfd3196e3a1c2e815 /emacs/gitto.el | |
parent | 3ddbd6c7430337534fe5207d8bfe0eb4bd20a5cd (diff) | |
download | gitto-387e3f1c677305cff2d104bcc6f23d6905b19335.tar.gz gitto-387e3f1c677305cff2d104bcc6f23d6905b19335.zip |
Turn format function into a generic method
This changes the way formatting functions can be customized in the init
file to:
,----
| (define-method (print (repo <repository>))
| (format #t "~a: ~d up; ~d down; ~a. Updated ~a~%"
| (repo-name repo) (repo-pushable repo) (repo-pullable repo)
| (if (repo-clean? repo) "clean" "dirty") (repo-updated repo)))
`----
Note that it is possible that REPO doesn't exist, so you should always
check for that first.
Diffstat (limited to 'emacs/gitto.el')
0 files changed, 0 insertions, 0 deletions