Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
In PS1 you need to escape non-printing characters, like the color codes.
The standard way is wrapping it in `\[` and `\]`. But for a dynamic
prompt, i.e. one that renders the results of a function every time the
prompt renders, that `\[` will be output as literals.
To fix this we bypass the conversion and wrap our non-printing
characters in the desired characters directly:
`\[` -> `\x01`
`\]` -> `\x02`
|
|
and \]"
This reverts commit 0fe65ed830b5d1cdc5189230139b52f4c8aacfbc.
|
|
|
|
The printf change in d5dbddf68c45dfff380d6e6767de401054024a19 caused the
escape sequences to be returned differently. This commit fixes tests
that were expecting the escape sequences to be changed from \\033 to
\\E.
|
|
|
|
|
|
|
|
When a remote branch begins with or ends with the local branch name then
the commits against diff functions can report the commits for the remote
branch instead of your local branch, e.g.:
I have local branch `foo` with 1 commit ahead of master and a remote
branch `foobar` with 2 ahead of master. The prompt will report 2 commits
instead of the true 1 commit because the `grep $branch_name` returns the
`foobar` branch.
Simple fix is to ensure we grep for the full `/<branch_name>$` so:
branch_name = `foo`
`origin/foo` matches
`other/foo` matches
`origin/foobar` doesn't match
`origin/barfoo` doesn't match
|
|
|
|
|
|
|
|
the master
|
|
|