Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 943383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:25:50+00:00 2026-05-15T22:25:50+00:00

Somewhen (around the 1.6.x releases, I think) git became aware of changes inside submodules.

  • 0

Somewhen (around the 1.6.x releases, I think) git became aware of changes inside submodules. That only serves to annoy me:

$ git status vendor | grep modified:
#       modified:   vendor/rails (modified content)
$ git diff vendor/
diff --git a/vendor/rails b/vendor/rails
--- a/vendor/rails
+++ b/vendor/rails
@@ -1 +1 @@
-Subproject commit 046c900df27994d454b7f906caa0e4226bb42b6f
+Subproject commit 046c900df27994d454b7f906caa0e4226bb42b6f-dirty

Please make it stop?

Edit:

Ok, so I have an answer. Now I have another question:

Can I put this in ~/.gitconfig? From my initial it appears that I cannot, and I didn’t see anything promising by skimming the patch. (I guess I can still make an alias.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:25:51+00:00Added an answer on May 15, 2026 at 10:25 pm

    Update: See (and upvote) nilshaldenwang‘s answer regarding the possibility to add to the .gitmodules file a config parameter for ignoring dirty state of a given submodule.

    ignore = dirty
    

    So git 1.7.2 is out and includes the --ignore-submodules option for status.

    From git help status:

    --ignore-submodules[=<when>]
        Ignore changes to submodules when looking for changes.
        <when> can be either "untracked", "dirty" or "all", which
        is the default. When "untracked" is used submodules are
        not considered dirty when they only contain untracked
        content (but they are still scanned for modified content).
        Using "dirty" ignores all changes to the work tree of
        submodules, only changes to the commits stored in the
        superproject are shown (this was the behavior before
        1.7.0). Using "all" hides all changes to submodules (and
        suppresses the output of submodule summaries when the
        config option status.submodulesummary is set).
    

    The value that I want is dirty.

    git status --ignore-submodules=dirty
    

    I use an alias because I’m lazy:

    alias gst='git status --ignore-submodules=dirty'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a script in Python that saves attachments from Gmail, only from unseen
i have an editor that is basic microsoft actions: createlink bold etc. i made
I am developing an application that saves its settings in the install folder. If
Is it possible to hold an open TCP connection with a client, while the
We would like to have user defined formulas in our c++ program. e.g. The
I have a scraper, which queries different websites. Some of them varyingly use Content-Encoding.
I'm using MethodCallExpression to record method calls. public void RegisterInvocation<TSource> (TSource target, Expression<Action<TSource>> selector)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.