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

  • SEARCH
  • Home
  • 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 3960184
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:49:26+00:00 2026-05-20T02:49:26+00:00

I’ve been working on a project that needs to touch basically every view (so

  • 0

I’ve been working on a project that needs to touch basically every view (so within the app/views folder), but there’s a lot of views. Given a combination of bash and git, how can a get a list of the files I haven’t committed an edit to since a given revision?

  • 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-20T02:49:27+00:00Added an answer on May 20, 2026 at 2:49 am

    There’s probably a neater way of doing this, but I think the following works:

    If the last revision before the changes was fa1afe1, then you can find all the files that changed under app/views with:

    git diff --name-only fa1afe1 -- app/views
    

    Also, you can see all of the files that git is tracking under app/views with:

    git ls-files app/views
    

    Now you can find all the lines that only appear in the output of one of those commands by using comm -3 and bash’s process substitution syntax:

    comm -3 <(git diff --name-only fa1afe1 -- app/views|sort) <(git ls-files app/views|sort)
    

    (You might find it clearer to send the output of the two commands to temporary files and then use comm rather than use process substitution, since then you’ll have a solution that will work with /bin/sh as well and may be easier to understand.)

    This command will also show files that were deleted in the changes since fa1afe1, since those files won’t appear in the output of git ls-files. As another caveat, strictly speaking this will just show you files which are different between that commit and now, so it will miss files that were changed in one commit and reverted back to their original content afterwards. If that’s a problem then you can use git log with --name-only and appropriate formatting to build the list of changed files instead of git diff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've been working on a project that requires offering the possibility to view
Hey so I have been working on a project that I want to be
I have a django project that I have been working on as a solo
I have a console project that I have been working on. I added log4net
I am really close to finishing up on a project that I've been working
I have a project on github that I have been working on before. However,
I'm trying to get MSBuild working on a project that has just been moved
I've a project that I'm working on which has not been started by me.
I've got this ASP.NET 2.0 website project in Visual Studio that I've been working
I'm currently working on a C++ project that needs to have as few external

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.