Commit 4fe1887
committed
[RFC] shell: allow overriding built-in commands
This patch allows overriding built-in commands by placing a script
with the same name under git-shell-commands directory.
This is useful for users who want to extend the built-in commands
without replacing the original command binary. For instance, a user
wanting to allow only a subset of users to run the git-receive-pack
can override the command with a script that checks the user and
calls the original command if the user is allowed.
CC: Junio C Hamano <[email protected]>, Jeff King <[email protected]>
CC: Taylor Blau <[email protected]>
Signed-off-by: Ayman Bagabas <[email protected]>1 parent 683c54c commit 4fe1887
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
214 | 223 | | |
215 | 224 | | |
216 | | - | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
0 commit comments