[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/dired-git-info c8e3b2e 13/33: Add docstrings
From: |
Clemens Radermacher |
Subject: |
[elpa] scratch/dired-git-info c8e3b2e 13/33: Add docstrings |
Date: |
Sun, 17 Feb 2019 13:03:29 -0500 (EST) |
branch: scratch/dired-git-info
commit c8e3b2eb8a62c3f1f37ae375300191011e09e9a4
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Add docstrings
---
dired-git-info.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dired-git-info.el b/dired-git-info.el
index 27c087a..c2b8be1 100644
--- a/dired-git-info.el
+++ b/dired-git-info.el
@@ -266,8 +266,7 @@ info format and defaults to `dgi-commit-message-format'."
(save-excursion
(dired-goto-file file)
(buffer-substring (point) (line-end-position))))))
- (when (and lfile
- (not (member lfile '(".." "."))))
+ (when (and lfile (not (member lfile '(".." "."))))
(let ((msg (dgi--command-to-string
"git" "log" "-1"
(concat "--pretty="
@@ -293,18 +292,21 @@ info format and defaults to `dgi-commit-message-format'."
(dired-mark 1))))))
(defun dgi--cleanup ()
+ "Remove commit overlays."
(dolist (ov dgi--commit-ovs)
(delete-overlay ov))
(setq dgi--commit-ovs nil))
(defun dgi--get-dired-files-length (files)
+ "Get list of lengths of all FILES as displayed by dired."
(let ((dnames ()))
(dolist (file files (nreverse dnames))
(push (dgi--get-dired-file-length file)
dnames))))
(defun dgi--get-dired-file-length (file)
+ "Get lengths of FILE as displayed by dired."
(save-excursion
(dired-goto-file file)
(length (buffer-substring (point)
@@ -312,6 +314,7 @@ info format and defaults to `dgi-commit-message-format'."
(defun dgi--get-commit-messages (files)
+ "Get formatted commit messages for FILES."
(let ((messages ()))
(setq messages
(dolist (file files (nreverse messages))
- [elpa] scratch/dired-git-info 51135d8 07/33: Use actual displayed width of filename to determine spacing, (continued)
- [elpa] scratch/dired-git-info 51135d8 07/33: Use actual displayed width of filename to determine spacing, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 16c7a1a 15/33: Hide details when showing git info, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 2ea5107 29/33: Rephrase commentary, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info b5551e7 30/33: Convert entry command to minor mode, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 7755019 32/33: Get commit info from real file name, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info f539ba5 08/33: Align message parts of commit messages, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 8afe378 09/33: Update docstring for message format, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info f9f8ab5 17/33: Cleanup, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 0f7625c 14/33: Make overlays buffer local, to allow multiple dired buffers, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info aa8248a 21/33: Use temp buffer, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info c8e3b2e 13/33: Add docstrings,
Clemens Radermacher <=
- [elpa] scratch/dired-git-info 95688b3 20/33: Add group, keywords and make options customizeable, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 4f6d0ca 24/33: Boolean vars shouldn't have a -p suffix, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 6115ae1 03/33: Fix package name in comment, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info 740e1cf 27/33: Fix copyright, Clemens Radermacher, 2019/02/17
- [elpa] scratch/dired-git-info d8b777d 31/33: Cleanup, Clemens Radermacher, 2019/02/17