git-number
git-number copied to clipboard
git-number -c cd
please introduce this command which will change directory where chosen file are placed;
Unmerged paths:
(use "git add/rm ..." as appropriate to mark resolution)
#1631 both modified: lib/FrontOffice/Controller/Domain/Service.pm
so git-number-cd 1631 will 'cd' to directory where Service.pm is: cd lib/FrontOffice/Controller/Domain/
You can use this shell function to do this:
gcd() {
test -n "$1" && cd $(dirname $(git list $1))
}
$ gcd 1631
# Should cd you to lib/FrontOffice/Controller/Domain
add that to usage examples in doc. That will be handy to have that command from "The BOX" as 'ga' done.
That is hard to write so complicated expressions... (((