| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
A remote's stale branches it isn't sure to delete go to
REMOTE/graveyard/*: kept, but out of the way. --list leaves them out,
and completion doesn't offer them (they can still be named);
--list --all shows them, too.
|
| |
|
|
|
|
|
| |
A column HEAD: whether the checked-out HEAD, where it isn't master, has
a branch's new commits, by content (git cherry HEAD), as after --stack,
or picking: all (yes), some, or none (-); - where HEAD is master (NEW
says what master has).
|
| |
|
|
|
|
|
|
|
|
| |
Fetches REPO first, then puts the commits of BRANCH that HEAD doesn't
have yet (by content) on top of HEAD, one by one, detached, so no branch
moves, and nothing gets pushed: --take --pick onto HEAD, without the
push. One --stack after the other stacks branches, e.g. after
--checkout of the first. On a conflict, it stops there, for git
cherry-pick --continue or --abort. Only with a clean working tree, like
--checkout, whose checks are shared now.
|
| |
|
|
|
|
|
|
| |
On a terminal, each row in its STATE's color, the STATE in full, the rest
a bit muted (without the bold, or faint): review and push (amber),
VM-ahead! (red), all bold, and yours (blue): what's to do; rebase
(grey) and done (green): the remote's turn; * in bold, and the header.
Colored after column -t, so the columns stay aligned.
|
| |
|
|
|
|
|
| |
The owner of branches without a remote's prefix (and of master), and
whose are yours: $LOGNAME, else $USER, else id -un, rather than tv; and
yours by the missing prefix, not the name, so a remote of that name
isn't yours.
|
| |
|
|
|
|
|
| |
Fetches REPO first, like --show, then checks out claude's BRANCH there,
detached, without a local branch; only if the working tree is clean:
nothing changed, nothing untracked, no merge, rebase, cherry-pick or
revert going on. --checkout BRANCH is the same, with BRANCH a word.
|
| |
|
|
|
|
|
|
| |
--show runs git log (master..BRANCH, or the graph), or git diff with
--diff; --git adds to its arguments, split at spaces, and it can come
again: --git=-p --git='-n 1' is --git='-p -n 1'. Completion offers
git log's options after --git= (git diff's, with --diff), also for the
last word inside quotes.
|
| | |
|
| |
|
|
|
|
|
| |
Commands, Words, Options, and the list's columns, each command and
option on a line of its own, its description indented below it, the
headings in bold on a terminal; and an unknown option is a one-line
error now, not all of that.
|
| |
|
|
|
|
| |
--push and --show without BRANCH (the graph) take the repository the
current directory is in, when they get no REPO: by DIR as given, or
else physically (cd -P), so symlinks don't matter, without git.
|
| |
|
|
|
|
|
| |
A BRANCH without REPO is looked for in every repository in DIR, and
is_repo ran git remote get-url for each, which adds up with hundreds
(~0.4s for 300); [remote "claude"] in .git/config does it without git,
but where .git isn't a directory.
|
| |
|
|
|
|
|
| |
On a terminal, as completion has them: commands (and COMMAND),
options (and OPTION), REPO, BRANCH, and in an error, the repository and
branch it's about; truecolor, 256 or 8 colors, as the terminal has
them, and none with NO_COLOR, on a dumb terminal, or into a pipe.
|
| |
|
|
|
|
|
|
| |
When master isn't checked out anywhere, take does without a working
tree: it fast-forwards master by fetching into it (which takes
fast-forwards only), and take --force makes the new master a branch,
not a checkout. --pick still needs master checked out, and master
checked out in another worktree is refused.
|
| |
|
|
|
|
|
| |
Per branch, it ran cherry, rev-list, rev-parse (seen) and log (age);
now one for-each-ref per repository has tips, ages and what's been
seen, so it's cherry and rev-list per branch, and the repositories go
in parallel.
|
| |
|
|
|
|
|
|
| |
Running git twice per repository (remote get-url, for-each-ref) on
every TAB adds up, with many repositories; so read [remote "claude"]
from .git/config, and claude's branches from packed-refs and the loose
refs, and run git only where .git isn't a plain directory (a
worktree's), or the refs aren't files (reftable).
|
| |
|
|
|
|
|
|
|
|
| |
Readline prints escapes in candidates as ^[, so on a second TAB (just
listing, COMP_TYPE ?), the completion prints the list itself, in
columns like readline's, each kind in a color of its own, truecolor,
256 or 8 colors, as the terminal has them, and gives readline a single
blank candidate, to list instead, so that readline redraws the prompt
(one blank line, the price). With NO_COLOR, or a dumb terminal,
readline lists them, as before.
|
| |
|
|
|
|
| |
The commands, the options, REPOs, BRANCHes, in that order (complete -o
nosort, where bash has it, i.e. since 4.4), as bash can't color them;
and a name that's both a REPO and a BRANCH only once.
|
| |
|
|
|
|
| |
Without a command, it offers the commands, but none of their options;
with one, its options, and no other command; and no option that's there
already, nor --pick with -f, --force, or the other way round.
|
| |
|
|
|
|
|
|
|
|
|
| |
Commands are options now (--list, --show, --take, --push), in one set
with the others, without overlaps, so only REPO and BRANCH are words,
and each word is what exists: a repository in DIR, or a branch of
claude's in one, the one reading of all words that does, or an error.
Without REPO, BRANCH is in the one repository that has it; without a
command, it's --show if there's a BRANCH, else --list. --show fetches
first (REPO, or else all), --take doesn't: it takes what was shown.
An option that isn't for the command is an error, not ignored.
|
| |
|
|
|
| |
What's checked out is what one compares with, most likely, rather
than a local branch of the same name, which may well not be there.
|
| |
|
|
|
|
|
| |
take and push push master to claude's master, always, and by name,
which needs no upstream; but @{u} does (git log @{u}.., say), and
master has none after take --force when the old one had none. So
give it claude's then, but keep any it has already.
|
| |
|
|
|
|
|
|
| |
The commits of BRANCH that master doesn't have yet (git cherry's +, so
rebased ones master has are left out) get cherry-picked onto master,
which is then pushed, like take. On a conflict, it stops there, on
master: resolve, git cherry-pick --continue, then push; or --abort.
Until then, push refuses: master has only some of the picks.
|
| |
|
|
|
|
|
| |
A second take --force within the same second found its
abandoned/master-DATE taken already, and stopped (with git's error,
before changing anything). Now it adds -2, -3, ... to the name, as
long as that's taken.
|
| |
|
|
|
|
|
|
|
|
|
| |
The repository comes first now, then the command: claude-inbox REPO
show [BRANCH [--diff[=WHAT]]], REPO take [-f] BRANCH, REPO push [-f],
and REPO [list], which lists just REPO's branches (fetching only it).
Without REPO, list is all of them, as before. list and help are
commands there, anything else a REPO; after --, the next word is a REPO
in any case (a repository named list, say). The old order gets told
the new one. The command's own options (-f, --diff) still go anywhere
after it; the completion knows all of that.
|
|
|
For each repository the VM has (ssh claude: ~/src, but for symlinks,
i.e. third parties' in src/tmp), claude-inbox fetches its checkout here
(in $CLAUDE_INBOX_SRC, default ~/sync/src) from the remote claude, and
lists the branches there with something master doesn't have, compared
by content (git cherry), so rebased ones count as merged: with their
owner (the remote, by the branch's prefix, checked against the VM's
~/remotes, or tv, without one), what to do (review: it's new, on top of
master; rebase: master moved on, the remote's turn; done: master has
it all, to delete; yours: tv's own), what changed since show or take
(*), and whether master needs pushing (or, unexpectedly, the VM's has
something master doesn't). --by-remote groups by owner. show REPO
BRANCH shows master..BRANCH, with patches, show REPO BRANCH --diff=WHAT
the diff to it from WHAT (any branch or commit; by default, the local
branch of its name without the remote's prefix: B, for REMOTE/B), and
show REPO all branches, as a graph; take REPO BRANCH fast-forwards master
to it and pushes master to claude, or with -f (before or after the
arguments) renames master to abandoned/master-DATE, checks out BRANCH
as master (with the old one's upstream), and pushes that like push -f;
push REPO pushes master (with -f, a rewritten one, as long as claude's
is still the one last fetched: --force-with-lease). With bash
completion. A package for the host, of the claude facet's tools (the
name may still change, as it might serve hermes, too).
|