Commits

ZyX_I committed 69a242c

doc: Some fixes

Comments (0)

Files changed (3)

     version of the current file with URL fragment pointing to the current line 
     attached: useful for sharing) ([:AuHyperlink](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line186-0)).
 
-  - aurum#changeset(), aurum#repository() and aurum#status() functions 
+  - [aurum#changeset()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line437-0), [aurum#repository()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line433-0) and [aurum#status()](http://vimpluginloader.sourceforge.net/doc/aurum.txt.html#line441-0) functions 
     that are to be used from modeline.
 
   - Frontends for various other VCS commands.
 ------------------------------------------------------------------------------
 2.2. Functions                                               *aurum-functions*
 
-aurum#repository :: () -> repo                              *aurum#repository*
+aurum#repository :: () -> repo                            *aurum#repository()*
     Returns a repository object. Cached (update time is controlled by 
     |g:aurum_repocachetime|). See |aurum-repository|.
 
-aurum#changeset :: ([{repo}]) -> changeset                   *aurum#changeset*
+aurum#changeset :: ([{repo}]) -> changeset                 *aurum#changeset()*
     Returns a working directory changeset object. Cached (update time is 
     controlled by |g:aurum_cscachetime|). See |aurum-changeset|.
 
-aurum#status :: ([{repo}]) -> status                            *aurum#status*
+aurum#status :: ([{repo}]) -> status                          *aurum#status()*
     Returns a current file status (one of the keys of a dictionary returned by 
     |aurum-rf-status|) or zero. Cached (update time is controlled by 
     |g:aurum_statuscachetime|).
     Unsigned integer, defines time since last cache update after which cache 
     will become invalid. Time is specified in seconds.
     Type  Default  Used by ~
-    cs       3     |aurum#changeset|
-    status   5     |aurum#status|
-    repo     7     |aurum#repository|, all completion functions
+    cs       3     |aurum#changeset()|
+    status   5     |aurum#status()|
+    repo     7     |aurum#repository()|, all completion functions
 
 ignorefiles                                              *g:aurum_ignorefiles*
     List containing 0 or more strings. Determines when “files” option given to 
   getwork :: () -> cs                                       *aurum-rf-getwork*
     Get changeset object for the working directory revision.
   updatechangesets :: () -> _                      *aurum-rf-updatechangesets*
-    Updates data stored in repository. Is called automatically when you get 
-    the repository object unless this object is obtained from cash used by 
-    |aurum#repository|.
+    Updates data stored in repository. Is called automatically if 
+    |aurum-repo.cslist| is not empty when you get the repository object unless 
+    this object is obtained from cash used by |aurum#repository()|.
   reltorepo :: path -> path                               *aurum-rf-reltorepo*
     Turn absolute or relative to current directory path into relative to 
     repository root one.

plugin/aurum/drivers/git.vim

     let llog=len(log)
     while i<llog
         let [cs, i]=s:F.parsecs(log, i)
-        let a:repo.changesets[cs.hex]=cs
+        let a:repo.changesets[cs.hex]=extend(get(a:repo.changesets, cs.hex, {}),
+                    \                        cs)
     endwhile
     return []
 endfunction
     let cs=s:F.parsecs(s:F.git(a:repo, 'log', [a:rev.'^..'.a:rev], s:logkwargs,
                 \              0, 'csf', a:rev),
                 \      0)[0]
-    let a:repo.changesets[cs.hex]=cs
+    " XXX This construct is used to preserve information like “allfiles” etc
+    let a:repo.changesets[cs.hex]=extend(get(a:repo.changesets, cs.hex, {}), cs)
     return cs
 endfunction
 "▶1 git.getwork :: repo → cs
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.