Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Only download changed (master) files from specific date/commit untill now?

Silas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2018

Is there a way to download only the changed files from a specific date/commit until now?
I want to use the changed changed files for updating our production environment.

1 answer

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

That's effectively what pull does - only the commits since the last pull are sent over the wire, and they're applied to the client's working directory. Is there something else you're looking for here?

Silas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2018

Hi James,

 

Thank you for your anwser, unfortunately this is not the anwser i am looking for.
I want to clone (in my empty update folder) only the changed files from a specific date untill now. So not only the last changes, but for example: All the changed files since 2 weeks ago untill now.


jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

That isn't how Git or Mercurial work, unfortunately - they're both designed around commits, rather than files. When you clone, you'll get every file in a repo, regardless of when it was last updated, and regardless of how many commits deep you go with the clone. (The concept of "last updated" also gets a little hazy with Git and Hg, since the "last updated" date on a given file on a repo may reflect the date that that copy of that file was first created on the host filesystem, rather than the actual date of the last change.) And the patch format wouldn't really apply here, because it's designed around the specific changes in one or more commits, rather than the files

You might be able to do something with a working directory and a utility like find, though - keep a local copy of the entire repo up-to-date, and use find to look at the files that have changed in the relevant time frame. That might get a bit complicated, but it should work.

What are you trying to do here?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events