Giter Site home page Giter Site logo

skalt / git-cc Goto Github PK

View Code? Open in Web Editor NEW
83.0 3.0 7.0 3.23 MB

a git extension to help write conventional commits

License: Other

Go 88.16% Makefile 0.99% Shell 8.69% Nix 2.16%
conventional-commits conventional-changelog git git-extension git-extenstions command-line command-line-tool command-line-interface command-line-interpreter terminal-ui

git-cc's Issues

Write some end-to-end tests

Not having a good test suite is a perpetual source of shame. To prevent further dishonor:

  • research how to test bubbletea applications
  • test at least the selectors
  • run the tests in github actions

feature request: `--redo` flag

Often, I find myself doing

git cc -m "feat: ..." 
echo "pre-commit hooks rejected my commit"
# make fixes
git commit -m "$(cat ./.git/COMMIT_EDITMSG)"

It would be nice to encode this workflow as git cc --redo

RFC: rename the binary to `git-conventional-commit`, retaining `git-cc` as a symlink/alias

The name git-cc doesn't tell you what it does. cc could stand for anything, from email's carbon-copy to cubic centimeters. Worse still, cc is impractically short for tab-completion. git c<tab> brings up all the git subcommand which start with c, with cc somewhere below the top of the list.

Proposal: rename the binary to git-conventional-commit, with git-cc retained as a symlink and/or git-alias. That way, git conv<tab> will complete to git conventional-commit without additional configuration, while git cc [...] will still work normally. Based on my initial experimentation, symlinking git-conventional-commit -> git-cc breaks git tab-completion in bash/zsh, likely due to the symlink's file-mode being different than just a user-executable file: I got lrwxrwxrwx

To avoid renaming the binary, you could git config --global alias.conventional-commit 'cc'. However, that's another installation step in a tool that's meant to be maximally convenient.

To my ~1-2 users: Thoughts?

Error when installing (`arch: command not found`)

I tried to install following the README guide:

repo=skalt/git-cc
branch=master
curl -sL https://raw.githubusercontent.com/$repo/$branch/scripts/install.sh | sh

I got this error:

main: line 77: arch: command not found

feature request: make adding new scopes/types easier

When I want to enter a new commit-type or scope, I have to

  • remember what the new item was called
  • write out the new item in the appropriate place in the configuration document.

I'd like to

  • have the new item copied to my clipboard so that I don't have to remember it
  • if possible, place my cursor at the appropriate location within the config document
  • if possible, place a template entry for the new item within the config document at the right location

Unable to create custom scopes using CLI

I tried to create new scopes using the CLI and after typing scope's name and hit enter, scope was not created and no response was given. After looking into the code, I found the reason: $EDITOR is not set and vi is not installed in my system

selector lines get mangled on each keystroke on small terminals

On small terminals (I'm not yet sure what exact column width) each keystroke prints extra lines. This is likely due to how line-wrapping and listening for terminal resizing works in pkg/single_select.

select a commit type:
select a commit type:
select a commit type:
select a commit type:
select a commit type:
   type to select
   feat     adds a new feature
   fix      fixes a bug
   docs     changes only the documentation
   style    changes the style but not the meaning of the code (such as formatting)
 > perf     improves performance
   test     adds or corrects tests
   build    changes the build system or external dependencies
   chore    changes outside the code, docs, or tests
   ci       changes to the Continuous Inegration (CI) system
   refactor changes the code without changing behavior
   revert   reverts prior changes

submit: tab/enter; navigate: up/down; cancel: ctrl+c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.