Skip to content

Really missing the @modified type functionality mentioned in the README #93

Open

Description

@rocketraman

What a great project. Super-useful. However, I'm really wishing the @modified functionality mentioned in the README was available -- one almost always wants to do stuff in just projects with changes. I see that there has really been no activity on this project for a while, but do you have any plans to keep improving this project?

Activity

  1. rocketraman commented on Oct 16, 2018

    @rocketraman
    Author

    For now, I'm working around this with a hack. I created a script called ifgitmodified with this content:

    #!/bin/bash                                                                                                                                                                                                                        
    if [[ $(git status --porcelain) ]]; then                                                                                                                                                                                           
      $@                                                                                                                                                                                                                               
    fi
    

    and now I can do:

    gr @whatever ifgitmodified <any command and args here>
    

    I also have similar scripts ifgitahead, ifgitbehind, and ifgitbranch.

  2. rocketraman commented on Oct 16, 2018

    @rocketraman
    Author

    All these scripts uploaded to https://github.com/rocketraman/grscripts in case anyone else finds them useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions