|
codex
|
Classes | |
| class | finally |
| Executes an action at scope exit. More... | |
| struct | InteractiveLine |
| Parsed information from a Git interactive rebase list. More... | |
Enumerations | |
| enum class | Command { NONE , EDIT_REVISIONS , EDIT_FILES } |
| Command chosen via command-line arguments. More... | |
Functions | |
| bool | is_space (unsigned char c) |
| Convenient wrapper for the standard library function. | |
| std::string_view | lstrip (std::string_view s) |
| Returns a view with leading white space removed. | |
| std::tuple< std::string_view, std::string_view > | split (std::string_view s, std::size_t i) |
Splits a string_view into two at the specified point. | |
| std::tuple< std::string_view, std::string_view > | split (std::string_view s, std::string_view::iterator i) |
Overload taking an iterator into the string_view. | |
| std::uint64_t | parse_hash (std::string_view s) |
| Parses a Git abbreviated hash into a u64. | |
| bool | parse_hash_args (int argc, char **argv, std::vector< std::uint64_t > *v) |
| Parses a series of command-line arguments as Git abbreviated hashes. | |
| bool | parse_hash_str (std::string_view s, std::vector< std::uint64_t > *out) |
| Parses a list of Git abbreviated hashes separated by white space. | |
| Command | process_args (int *argc, char ***argv) |
| Processes command-line arguments. | |
| bool | process_lines (std::istream *input, auto &&f) |
Applies f to every line in input. | |
| bool | rebase_edit_hashes (std::istream *input, std::span< const std::uint64_t > hashes) |
| int | cmd_edit_revs (int argc, char **argv) |
Changes the command to edit for matching hashes. | |
| int | cmd_edit_files (int argc, char **argv) |
Changes the command to edit for revisions that change specified files. | |
|
strong |
| int anonymous_namespace{main.cpp}::cmd_edit_files | ( | int | argc, |
| char ** | argv ) |
Changes the command to edit for revisions that change specified files.


| int anonymous_namespace{main.cpp}::cmd_edit_revs | ( | int | argc, |
| char ** | argv ) |
Changes the command to edit for matching hashes.


|
inline |
Convenient wrapper for the standard library function.

| std::string_view anonymous_namespace{main.cpp}::lstrip | ( | std::string_view | s | ) |
Returns a view with leading white space removed.


| std::uint64_t anonymous_namespace{main.cpp}::parse_hash | ( | std::string_view | s | ) |
Parses a Git abbreviated hash into a u64.

| bool anonymous_namespace{main.cpp}::parse_hash_args | ( | int | argc, |
| char ** | argv, | ||
| std::vector< std::uint64_t > * | v ) |
Parses a series of command-line arguments as Git abbreviated hashes.


| bool anonymous_namespace{main.cpp}::parse_hash_str | ( | std::string_view | s, |
| std::vector< std::uint64_t > * | out ) |
Parses a list of Git abbreviated hashes separated by white space.


| Command anonymous_namespace{main.cpp}::process_args | ( | int * | argc, |
| char *** | argv ) |
Processes command-line arguments.
Returns the command selected and advances argc and argv.

| bool anonymous_namespace{main.cpp}::process_lines | ( | std::istream * | input, |
| auto && | f ) |
Applies f to every line in input.


| bool anonymous_namespace{main.cpp}::rebase_edit_hashes | ( | std::istream * | input, |
| std::span< const std::uint64_t > | hashes ) |


|
inline |
Splits a string_view into two at the specified point.


|
inline |
Overload taking an iterator into the string_view.
