Commit 9954f77
gitweb: Default to $hash_base or HEAD for $hash in "commit" and "commitdiff"
Set $hash parameter to $hash_base || "HEAD" if it is not set (if it is
not true to be more exact). This allows [hand-edited] URLs with 'action'
"commit" or "commitdiff" but without 'hash' parameter.
If there is 'h' (hash) parameter provided, then gitweb tries
to use this. HEAD is used _only_ if nether hash, nor hash_base
are provided, i.e. for URL like below
URL?p=project.git;a=commit
i.e. without neither 'h' nor 'hb'.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>1 parent 6d55f05 commit 9954f77
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3429 | 3429 | | |
3430 | 3430 | | |
3431 | 3431 | | |
| 3432 | + | |
3432 | 3433 | | |
3433 | 3434 | | |
3434 | 3435 | | |
| |||
3706 | 3707 | | |
3707 | 3708 | | |
3708 | 3709 | | |
| 3710 | + | |
3709 | 3711 | | |
3710 | 3712 | | |
3711 | 3713 | | |
| |||
0 commit comments