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

I've been working on a project that accesses the WMI to get information about
I've been working on a project that can't be described as 'small' anymore (40+
I have been working on a project that has 2 interfaces - windows forms
I have a project that I have been working on for a while, just
I've been working on a ASP.NET project that is going to save uploaded files
I have recently been working with someone on a project that is very ajax
I'm working on a project that's been accepted as a proof of concept and
I'm working on a visual studio 2005 vb.net windows forms project that's been around
I have been working on a project that dynamically creates a javascript file using
I am working on a project that needs to use a database driven MVC

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.