Creates wrapper around p4 filelog
Should make viewing file history a little more ergonomic.
This commit is contained in:
parent
f1ca81b021
commit
845ebb08fe
1 changed files with 9 additions and 0 deletions
|
@ -530,6 +530,15 @@ g3_root() {
|
||||||
echo "${PWD%%/google3/*}/google3"
|
echo "${PWD%%/google3/*}/google3"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p4_filelog() {
|
||||||
|
# Logs a file's Piper history. This is a convenience wrapper around
|
||||||
|
# `p4 filelog`.
|
||||||
|
# `filename` should be a relative path.
|
||||||
|
# Usage: p4_filelog <filename>
|
||||||
|
# Depends: p4
|
||||||
|
p4 filelog "//depot/$(pwd | grep -P -o 'google3\/.+$')/$1"
|
||||||
|
}
|
||||||
|
|
||||||
citc_workspace() {
|
citc_workspace() {
|
||||||
# Returns the name of your current CitC workspace
|
# Returns the name of your current CitC workspace
|
||||||
pwd | grep -o -P "$(whoami)\/[^\/]+"
|
pwd | grep -o -P "$(whoami)\/[^\/]+"
|
||||||
|
|
Loading…
Reference in a new issue