JuliaLang/Pkg.jl

Print diff when a tracked branch changes

Open

#274 aberto em 3 de mai. de 2018

Ver no GitHub
 (1 comment) (2 reactions) (0 assignees)Julia (296 forks)batch import
display and printingenhancementhelp wanted

Métricas do repositório

Stars
 (665 stars)
Métricas de merge de PR
 (Mesclagem média 20d 9h) (11 fundiu PRs em 30d)

Description

I think it would be useful to print a diff when a tracked branch is updated. Current behaviour:

pkg> add BenchmarkTools#master

# change the master branch

pkg> up
[...]
  Updating `~/.julia/environments/v0.7/Project.toml`
 [6e4b80f9] ~ BenchmarkTools v0.2.5+ #master
  Updating `~/.julia/environments/v0.7/Manifest.toml`
 [6e4b80f9] ~  BenchmarkTools v0.2.5+ #master

which IMO would be better as

pkg> up
[...]
  Updating `~/.julia/environments/v0.7/Project.toml`
 [6e4b80f9] ↑ BenchmarkTools v0.2.5+ #master(commit1) ⇒ v0.2.5+ #master(commit2)
  Updating `~/.julia/environments/v0.7/Manifest.toml`
 [6e4b80f9] ↑ BenchmarkTools v0.2.5+ #master(commit1) ⇒ v0.2.5+ #master(commit2)

Additionally, perhaps we should always print the commit hash for tracked branches, e.g. st would change from

(v0.7) pkg> st
Status `~/.julia/environments/v0.7/Project.toml`
 [6e4b80f9] BenchmarkTools v0.2.5+ #master

to

(v0.7) pkg> st
Status `~/.julia/environments/v0.7/Project.toml`
 [6e4b80f9] BenchmarkTools v0.2.5+ #master(commit)

Guia do colaborador