Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gtest function: tests staged changes w/ specified command #89

Merged
merged 4 commits into from
Feb 15, 2023

Conversation

jhillyerd
Copy link
Owner

@jhillyerd jhillyerd commented Jan 24, 2023

Anyone viewing this PR, please comment if you know an easier way to accomplish this.

To do:

  • Try git reset --soft HEAD~1 to reset & stage in one step
  • Try again with push --keep-index, this time discard index after testing then pop stash

Good discussion: https://stackoverflow.com/questions/41304610/run-tests-only-for-staged-files-git-stash-k-u-and-git-stash-pop-will-rais

@jhillyerd jhillyerd changed the title Add gtest function: tests staged changes w/ command Add gtest function: tests staged changes w/ specified command Jan 25, 2023
@jhillyerd jhillyerd marked this pull request as ready for review February 13, 2023 20:22
Signed-off-by: James Hillyerd <james@hillyerd.com>
Signed-off-by: James Hillyerd <james@hillyerd.com>
Signed-off-by: James Hillyerd <james@hillyerd.com>
Signed-off-by: James Hillyerd <james@hillyerd.com>
@jhillyerd jhillyerd merged commit ac855e4 into master Feb 15, 2023
@jhillyerd jhillyerd deleted the git-test-cmd branch February 15, 2023 22:26
telmen added a commit to telmen/plugin-git that referenced this pull request Apr 10, 2023
* jhillyerd-master:
  Update __git.init.fish
  Add `gcs` abbreviation. (jhillyerd#99)
  Use abbreviations instead of functions for simple aliases (jhillyerd#98)
  Document Nix installation (jhillyerd#96)
  Load configuration via fisher_path (jhillyerd#95)
  README update a couple links
  Add sample workflow to README
  Add gtest function: tests staged changes w/ specified command (jhillyerd#89)
  Add Gitlab-specific push options (jhillyerd#94)
  readme: Update fish version tile (jhillyerd#93)
  Remove univeral abbr for fish 3.6.0 (jhillyerd#92)
  Add alias for rebasing against latest origin/main (jhillyerd#91)
  Delete squashed branches in gbda (jhillyerd#87)
  Delete squashed branches in gbda (jhillyerd#87)
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.

None yet

1 participant