Signed-off-by: Pieter Praet <[email protected]>
---
magit.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/magit.el b/magit.el
index 9d5d003..fe9328f 100644
--- a/magit.el
+++ b/magit.el
@@ -1080,6 +1080,7 @@ (defun magit-split-lines (str)
(nreverse lines))))
(defun magit-file-line (file)
+ "Return the first line of FILE as a string."
(when (file-exists-p file)
(with-temp-buffer
(insert-file-contents file)
@@ -1087,6 +1088,8 @@ (defun magit-file-line (file)
(line-end-position)))))
(defun magit-file-lines (file)
+ "Return a list of strings containing one element per line in FILE.
+If the last line is empty, it's trimmed."
(when (file-exists-p file)
(with-temp-buffer
(insert-file-contents file)
--
1.7.11.1
--
---
You received this message because you are subscribed to the Google Groups
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.