summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-09-11 14:02:39 +0300
committerRichard Maw <richard.maw@gmail.com>2017-01-02 18:25:52 +0000
commit73d91076b2c1fe597148db4efd38a5e02cc099df (patch)
tree09dc5482097d628373349fa6f2ab2dbc984e0e54 /doc
parent21150650050068ae4171f6d6d20882b1a3ac1c8a (diff)
downloadgitano-73d91076b2c1fe597148db4efd38a5e02cc099df.tar.gz
Update predicates list based of Daniel feedback
Diffstat (limited to 'doc')
-rw-r--r--doc/admin/000.mdwn45
1 files changed, 5 insertions, 40 deletions
diff --git a/doc/admin/000.mdwn b/doc/admin/000.mdwn
index 8b7cb15..d94e922 100644
--- a/doc/admin/000.mdwn
+++ b/doc/admin/000.mdwn
@@ -150,9 +150,9 @@ Table: Gitano predicates
---------------------- -----------
`operation` name of operation (gitano command)
`owner` username of repository owner
-`group` name of group to which repository is assigned
+`group` groups of invoker of gitano or target of `as`
`ref` the ref (branch, tag) being operated on
-`user` username of user invoking gitano
+`user` username of user invoking gitano, or target of `as`
`repository` path of repository being operated on
`repository/basename` the basename part of a repository
`repository/dirname` all but the basename part of a repository
@@ -164,9 +164,9 @@ Table: Gitano predicates
`treediff/modified` ...
`treediff/renamed` ...
`treediff/renamedto` ...
-`as_user` username of user operation is run as
-`as_group` groupname operation is run as
-`targetuser` FIXME
+`as_user` username of user invoking `as otheruser`
+`as_group` groups of user invoking `as otheruser`
+`targetuser` username in a user manipulation command
`targetgroup` the group in a group manipulation command
`targetgroup/prefix` FIXME
`targetgroup/suffix` FIXME
@@ -175,41 +175,6 @@ Table: Gitano predicates
`member/suffix` FIXME
---------------------- -----------
-FIXME: `as_user/group`:
-> as_user and as_group are related to the real human running the
-> command
->
-> in the case of an 'as'd command, the user and group stuff is the
-> effectively the 'sudo'd user
->
-> so if I run:
->
-> as liw foobar
->
-> user == liw
->
-> group == liw's groups
->
-> as_user == dsilvers
->
-> as_group == dsilvers' groups
-
-FIXME: targetuser:
-> targetuser is the username targetted by the 'user' command
->
-> user set-name liw Lars Wibblecheeks
->
-> then targetuser will be liw
-
-FIXME: member:
-> member is the user being manipulated in a group command
->
-> group adduser foogroup liw
->
-> targetgroup == foogroup
->
-> member == liw
-
Predicates can be combined using the operators `anyof` and `allof`: