4786ae21ac3d

Add documentation for the new filters.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 27 Sep 2009 10:27:01 -0400
parents b74891ea0325
children 26c06c83b0f1
branches/tags (none)
files README prompt.py

Changes

--- a/README	Sun Sep 27 10:21:45 2009 -0400
+++ b/README	Sun Sep 27 10:27:01 2009 -0400
@@ -68,6 +68,9 @@
 * **root:** the full path to the root of the current repository, without a trailing slash
 * **root|basename:** the directory name of the root of the current repository.  For example, if the repository is in `/home/u/myrepo` then this keyword would expand to `myrepo`.
 * **status:**  `!` if the repository has any changed/added/removed files, otherwise `?` if it has any untracked (but not ignored) files, otherwise nothing.
+* **status|modified:** `!` if the current repository contains files that have been modified, added, removed, or deleted, otherwise nothing.
+* **status|unknown:** `?` if the current repository contains untracked files, otherwise nothing.
+* **status|modified|unknown:** `!` if the current repository contains files that have been modified, added, removed, or deleted, *and* `?` if it contains untracked (and not ignored) files, otherwise nothing.
 * **tags:** the tags of the current parent, separated by a space
 * **tags|SEP:** the tags of the current parent, separated by `SEP`
 * **task:** the current task (requires the [tasks][] extension)
--- a/prompt.py	Sun Sep 27 10:21:45 2009 -0400
+++ b/prompt.py	Sun Sep 27 10:27:01 2009 -0400
@@ -84,6 +84,13 @@
     - status: "!" if the current repository contains files that have been
         modified, added, removed, or deleted, otherwise "?" if it contains
         untracked (and not ignored) files, otherwise nothing.
+    - status|modified: "!" if the current repository contains files that
+        have been modified, added, removed, or deleted, otherwise nothing.
+    - status|unknown: "?" if the current repository contains untracked
+        files, otherwise nothing.
+    - status|modified|unknown: "!" if the current repository contains files
+        that have been modified, added, removed, or deleted, and "?" if it
+        contains untracked (and not ignored) files, otherwise nothing.
     - tags: the tags of the current parent, separated by a space
     - tags|SEP: the tags of the current parent, separated by SEP
     - task: the current task (requires the tasks extension)