FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add colours to status subcommand by SandrineP · Pull Request #41 · QuantStack/git2cpp · GitHub

Repository navigation

Add colours to status subcommand - #41

Merged
ianthomas23 merged 7 commits into
QuantStack:mainfrom
SandrineP:colours
Sep 5, 2025
Merged

ianthomas23 merged 7 commits into
QuantStack:mainfrom
SandrineP:colours

Conversation

Copy link
Copy Markdown
Collaborator

Add colours to status subcommand

Comment thread src/subcommand/log_subcommand.cpp Outdated
signature_wrapper committer = signature_wrapper::get_commit_committer(commit);

std::cout << "\033[0;33m" << "commit " << buf << "\033[0m" << std::endl;
std::cout << message_colour.at("yellow") << "commit " << buf << message_colour.at("colour_close") << std::endl;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice to see use of colour rather than color!

Comment thread src/subcommand/status_subcommand.cpp Outdated
{
std::cout << e.status << e.item << std::endl;
if (is_long)
std::cout << colour << e.status << e.item << message_colour.at("colour_close") << std::endl;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should this line be indented a few spaces? And the line 2 below this.

ianthomas23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I've confirmed that this works well for me locally.

Just one tiny nit, otherwise good to merge.

Comment thread src/subcommand/status_subcommand.cpp Outdated

if (sl.has_tobecommited_header())
{
stream_colour_fn colour = termcolor::green;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

There's an unnecessary double space here.

Copy link
Copy Markdown
Member

Note to self: need to add termcolor-cpp to emscripten-forge recipe.

ianthomas23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @SandrineP

ianthomas23 merged commit a930ee2 into QuantStack:main Sep 5, 2025
1 check passed
SandrineP deleted the colours branch September 5, 2025 08:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL