mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
Merge branch 'master' into https-ask-for-username-password
This commit is contained in:
15
Dockerfile
15
Dockerfile
@ -1,13 +1,14 @@
|
|||||||
# run with:
|
# run with:
|
||||||
# docker build -t lazygit .
|
# docker build -t lazygit .
|
||||||
# docker run -it lazygit:latest
|
# docker run -it lazygit:latest /bin/sh -l
|
||||||
|
|
||||||
FROM golang:alpine
|
FROM golang:alpine
|
||||||
|
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
||||||
|
COPY ./ .
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o lazygit .
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
RUN apk add -U git xdg-utils
|
RUN apk add -U git xdg-utils
|
||||||
|
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
||||||
ADD . /go/src/github.com/jesseduffield/lazygit
|
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/
|
||||||
|
RUN echo "alias gg=lazygit" >> ~/.profile
|
||||||
RUN go install github.com/jesseduffield/lazygit
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/jesseduffield/lazygit
|
|
||||||
|
@ -22,7 +22,7 @@ type Branch struct {
|
|||||||
func (b *Branch) GetDisplayStrings() []string {
|
func (b *Branch) GetDisplayStrings() []string {
|
||||||
displayName := utils.ColoredString(b.Name, b.GetColor())
|
displayName := utils.ColoredString(b.Name, b.GetColor())
|
||||||
if b.Selected && b.Pushables != "" && b.Pullables != "" {
|
if b.Selected && b.Pushables != "" && b.Pullables != "" {
|
||||||
displayName = fmt.Sprintf("↑%s↓%s %s", b.Pushables, b.Pullables, displayName)
|
displayName = fmt.Sprintf("%s ↑%s↓%s", displayName, b.Pushables, b.Pullables)
|
||||||
}
|
}
|
||||||
|
|
||||||
return []string{b.Recency, displayName}
|
return []string{b.Recency, displayName}
|
||||||
|
Reference in New Issue
Block a user