aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2019-06-05Add draft of 'code-review-start'Teddy Wing
This command will store the desired merge base for the current branch, defaulting to "origin/master". In so doing, subsequent `code-review` subcommands will have access to this and be able to default to a merge base branch instead of: * Having users specify one manually at the command line for each `code-review` subcommand * Having a default merge base branch that's not desired by users I figure I can hopefully get away with not sanitizing SQL input because I don't think you can use apostrophes in Git branch names. Otherwise I'll probably have to port this to another language with a SQLite library, as it doesn't seem possible to easily sanitize inputs in Bash.
2019-06-04code-review-difftool: Use 'vim-fugitive' instead of 'vdwrap'Teddy Wing
Fugitive seems to have fewer surprises and basically just work in Vim.
2019-06-04Add code-review-commitsTeddy Wing
Output a short log of commits.
2019-06-04Add code-review-statTeddy Wing
Outputs a stat of the changed files.
2019-06-03code-review: Pass arguments to subcommand programTeddy Wing
Since subcommands are separate programs, we need to make sure we pass all remaining arguments along to the subcommand. Without this, I wasn't able to pass a different base branch to my `diff` subcommand.
2019-06-03Add code-review-diffTeddy Wing
Script to show a Git diff of the current changes. Uses `master..` as the default base.
2019-06-03Add `code-review`, subcommand runnerTeddy Wing
This script takes a subcommand as the first argument and executes an executable called "code-review-${subcommand}", similar to the way Git does subcommands. Using this subcommand system, I can have different unrelated subcommands in separate files/scripts, making it easier to organise the code.
2019-06-03Move `code-review` to `code-review-difftool`Teddy Wing
Going to set up a Git-style subcommand system where subcommands are separate executables.
2019-06-02git-changed-files: Get an absolute path to the files (WIP)Teddy Wing
A couple methods to get the absolute path to the changed files. This allows the output to be used to operate on changed files even if the current directory is not the repo root. Otherwise, all files are listed relative to the repository root.
2019-06-02Add a script to show filenames of changed filesTeddy Wing
Arguments are a Git refspec.
2019-06-02code-review: Add a note to focus the rightmost tab in VimTeddy Wing
2019-05-18Add directory diff command using `vdwrap`Teddy Wing
Performs a dir diff opening all changed files in separate tabs in Vim all in diff mode. Currently it has some problems as `vdwrap` uses `/dev/null` to compare against new files, but Vim pops up errors saying `/dev/null` isn't a real file.
2018-12-01Add a new interface ideaTeddy Wing
2018-12-01git-review: Make `EX_USAGE` a function-local variableTeddy Wing
This script is going to be sourced into an interactive shell session. Don't set unnecessary variables.
2018-12-01Add `git-review`Teddy Wing
Shell function that checks out a pull request in a git worktree and changes into the worktree directory.
2018-12-01Track ideas fileTeddy Wing