| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
-nc works and its actually documented.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
Instead of checking based on the ref name, simply check and use
--no-deref if it is an unborn ref.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, the default state inferred by save/switch is detached HEAD,
and attach is a special state. However, if there is nothing in HEAD,
Git throws a "fatal: not a git dir" error. This resulted in setting
HEAD as refs/conv/scratch when init. Consequently, running `sib ask
-n' attaches to refs/conv/scratch, while running `sib switch` detaches
it, causing a problem of inconsistency.
This commit resolved this by introducing a special ref called
refs/sib/unborn to represent the ---new and init states, and by
checking this in ask to ensure it becomes detached.
The reason for changing the name of unborned state, aside from the
processing in ask, is that conv/ has become the place where all saves
go, so there should be no special indicator there.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
| |
This seems more natural and straightforward.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
|
| |
Similar to Git, scripts including the dispatcher sib are grouped into
libexec/sib-core, and symlinks are created in bin/sib. Additionally,
libexec/sib-core is added to the PATH when executing any script inside
sib. I don't really see any downside to adding to the PATH and loading
the script. It's clear.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
This prevents `--new' from overwriting a dialog ref when HEAD points
to another dialog ref as a symref.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
The feature to set a ref on the current chain when starting a new turn
is always useful.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
| |
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
The problem was that the HEAD update by -p depended on user input, so
I just branched at that point.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
| |
If you don't pass -p to chain-trace-json, it just creates the root
chain. Also added comments because the code didn't seem very clear.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
Excluded receiving the prompt as an argument because it increases code
complexity. Besides, inputting from stdin is more convenient in the
first place... Since it is difficult to distinguish between input
blocking and API call blocking, print a warning message in that case.
Signed-off-by: Hee-Suk Kim <[email protected]>
|
|
|
It seems like there are quite a few bugs in edge cases.
But for now, it works.
Signed-off-by: Hee-Suk Kim <[email protected]>
|