Repository navigation
Conversation
|
added a documentation update commit which should have been merged together with #7686 IMHO |
|
It wasn't on purpose. It was just simpler and I'm very new to go. I like this much better. |
There was a problem hiding this comment.
I'm not sure that understand this code. Here outNames will be length 1? Is possible that there is no canonical name?
There was a problem hiding this comment.
AFAIK, there is always a canonical name, either implicit or explicit. And yes, when noTrunc == false, that code flattens outNames to a single-item slice.
|
Also I think this deserves cli test and commit squashing - two commits with code and docs should be enough |
|
@LK4D4 i'll add a CLI test. Regarding the commit policy, I was going more for semantic commits, but should it be one for code&test and one for docs? thanks! |
|
@bjaglin That will be nice. I just was confused by "only process names when necessary" commit and thought that you might want to squash it :) |
|
OK - I was just trying to keep pure refactoring changes outside the actual change, but I am happy to squash them as well! |
2f89f46 to
24e64b7
Compare
|
CLI test added and commits squashed. A question that comes to my mind, although more related to #7686 than this PR, is whether the |
|
I'm not sure what do you mean by commit "reflect changes introduced in d2ffcd9", maybe you forgot to mention "docs" in commit message. |
|
Code LGTM |
Docker-DCO-1.1-Signed-off-by: Brice Jaglin <[email protected]> (github: bjaglin)
Docker-DCO-1.1-Signed-off-by: Brice Jaglin <[email protected]> (github: bjaglin)
24e64b7 to
4a5cefa
Compare
|
I just added "in docs" in the first message. |
There was a problem hiding this comment.
what if lines length is for some reason < 2, this is going to panic
There was a problem hiding this comment.
also thanks for using %q :)
|
I'll take this one, there is a simpler way to do what we want. |
|
Replaced by #8505 |
After trying out the upcoming 1.3.0, I was pleased to see that #7686 made the default output of
docker psmore compact. However, keeping the very first name could be confusing, as it might be the name resulting from a--link(foo/bar). @guywithnose @crosbymichael was that on purpose?This patches makes sure that the canonical name is shown (which also happens to be the shortest), and avoid unnecessary processing of the names.