Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
isprogram
/
pyenv
espelhamento de
https://github.com/pyenv/pyenv.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Projects
0
Versões
241
Wiki
Atividade
Ver código fonte
Tweak `rbenv --version` output
pull/360/head^2
Sam Stephenson
13 anos atrás
pai
3060578e3b
commit
1ebcbd92e2
2 arquivos alterados
com
4 adições
e
3 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-1
libexec/rbenv
+3
-2
libexec/rbenv---version
+ 1
- 1
libexec/rbenv
Ver arquivo
@ -60,7 +60,7 @@ shopt -u nullglob
command="$1"
case "$command" in
"" | "-h" | "--help" )
echo -e "
rbenv
$(rbenv---version)\n$(rbenv-help)" >&2
echo -e "$(rbenv---version)\n$(rbenv-help)" >&2
;;
"-v" )
exec rbenv---version
+ 3
- 2
libexec/rbenv---version
Ver arquivo
@ -2,9 +2,10 @@
set -e
[ -n "$RBENV_DEBUG" ] && set -x
version=
v
0.3.0
version=0.3.0
cd "$RBENV_ROOT"
git_revision="$(git describe --tags HEAD 2>/dev/null || true)"
git_revision="${git_revision#v}"
echo ${git_revision:-$version}
echo
"rbenv
${git_revision:-$version}
"
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar