aboutsummaryrefslogtreecommitdiff
path: root/src/dir.h
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-08-18 18:05:04 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-08-18 18:05:04 +0300
commit80ec734a953d930838ea6839923c97c3da880a0d (patch)
treec47aa12434ae72adf40e9add03245ae58b6b697e /src/dir.h
parent799c22f63b93e9d1ab8f01473bf9ebd2e9750f43 (diff)
Squashed 'gitstatus/' changes from 845f492f..2ecd9907
2ecd9907 add logging to debug https://github.com/romkatv/powerlevel10k/issues/1477 74010456 add a TODO to fix #254 864f1caf Trim '\w' part of bash prompt. (#253) git-subtree-dir: gitstatus git-subtree-split: 2ecd990706255d2000fedbde3b2d2353f63d69a1
Diffstat (limited to 'src/dir.h')
-rw-r--r--src/dir.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dir.h b/src/dir.h
index 42ab29bb..4d4cf3da 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -25,11 +25,11 @@
namespace gitstatus {
-// On error, clears entries and returns false. Does not throw.
+// On error, leaves entries unchaged and returns false. Does not throw.
//
-// On success, fills entries with the names of files from the specified directory and returns true.
-// Every entry is a null-terminated string. At -1 offset is its d_type. All elements point into the
-// arena. They are sorted either by strcmp or strcasecmp depending on case_sensitive.
+// On success, appends names of files from the specified directory to entries and returns true.
+// Every appended entry is a null-terminated string. At -1 offset is its d_type. All elements
+// point into the arena. They are sorted either by strcmp or strcasecmp depending on case_sensitive.
//
// Does not close dir_fd.
//