Skip to main content
update links
Source Link
David Refoua
  • 1.2k
  • 1
  • 12
  • 17

Git by default does not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the pushed files.

Doesn't it make sense for the file's modification date to be set to the value of the last commit (remote or local), rather than it leaving it the same as the date it was fetched from the server?

Git stores the last modification time for each file, based on its commit history. Why doesn't Git touch each file to their last commit time when the files are pulled from the remote repository?

I know it's possible to possibleconfigure to modify the config for Git to achieve something like this, and to restore file times, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that nobody think would be useful), I'm interested to know about the decision against implementing this.

Git by default does not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the pushed files.

Doesn't it make sense for the file's modification date to be set to the value of the last commit (remote or local), rather than it leaving it the same as the date it was fetched from the server?

Git stores the last modification time for each file, based on its commit history. Why doesn't Git touch each file to their last commit time when the files are pulled from the remote repository?

I know it's possible to modify the config for Git to achieve something like this, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that nobody think would be useful), I'm interested to know about the decision against implementing this.

Git by default does not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the pushed files.

Doesn't it make sense for the file's modification date to be set to the value of the last commit (remote or local), rather than it leaving it the same as the date it was fetched from the server?

Git stores the last modification time for each file, based on its commit history. Why doesn't Git touch each file to their last commit time when the files are pulled from the remote repository?

I know it's possible to configure Git to achieve something like this, and to restore file times, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that nobody think would be useful), I'm interested to know about the decision against implementing this.

deleted 31 characters in body
Source Link
David Refoua
  • 1.2k
  • 1
  • 12
  • 17

Git by default lacks the logic todoes not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the origin, and IMO this is a really annoying behaviorpushed files.

Doesn't it make sense for the file to have afile's modification date to be set to the value of the last commit (remote or local), rather than it havingleaving it the last timesame as the date it was fetched from the server?

GitHub keepsGit stores the last commitmodification time for each file, based on theirits commit history. Why doesn't Git touch each file to their last commit time when the files are pulled from the serverremote repository?

I know it's possible to modify the config for Git to achieve something like this, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that no one didn'tnobody think of itwould be useful to actually implement it), I'm interested to know about the decision against implementing this.

Git by default lacks the logic to set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the origin, and IMO this is a really annoying behavior.

Doesn't it make sense for the file to have a modification date of the last commit (remote or local), rather than it having the last time it was fetched from the server?

GitHub keeps the last commit time for each file, based on their history. Why doesn't Git touch each file to their last commit time when the files are pulled from the server?

I know it's possible to modify the config for Git to achieve something like this, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that no one didn't think of it useful to actually implement it), I'm interested to know about the decision against implementing this.

Git by default does not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the pushed files.

Doesn't it make sense for the file's modification date to be set to the value of the last commit (remote or local), rather than it leaving it the same as the date it was fetched from the server?

Git stores the last modification time for each file, based on its commit history. Why doesn't Git touch each file to their last commit time when the files are pulled from the remote repository?

I know it's possible to modify the config for Git to achieve something like this, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that nobody think would be useful), I'm interested to know about the decision against implementing this.

Tweeted twitter.com/StackSoftEng/status/875094683818618884
added a brief note
Source Link
David Refoua
  • 1.2k
  • 1
  • 12
  • 17

Git by default lacks the logic to set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the origin, and IMO this is a really annoying behavior.

Doesn't it make sense for the file to have a modification date of the last commit (remote or local), rather than it having the last time it was fetched from the server?

GitHub keeps the last commit time for each file, based on their history. Why doesn't Git touch each file to their last commit time when the files are pulled from the server?

I know it's possible to modify the config for Git to achieve something like this, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this whenon default (other than it was a feature that no one didn't think of it useful to actually implement it), I'm interested to know about the decision against implementing this.

Git by default lacks the logic to set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the origin, and IMO this is a really annoying behavior.

Doesn't it make sense for the file to have a modification date of the last commit (remote or local), rather than it having the last time it was fetched from the server?

GitHub keeps the last commit time for each file, based on their history. Why doesn't Git touch each file to their last commit time when the files are pulled from the server?

If there is a particular reason why Git doesn't do this when (other than it was a feature that no one didn't think of it useful to actually implement it), I'm interested to know about the decision against implementing this.

Git by default lacks the logic to set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the origin, and IMO this is a really annoying behavior.

Doesn't it make sense for the file to have a modification date of the last commit (remote or local), rather than it having the last time it was fetched from the server?

GitHub keeps the last commit time for each file, based on their history. Why doesn't Git touch each file to their last commit time when the files are pulled from the server?

I know it's possible to modify the config for Git to achieve something like this, but what I'm asking is why Git doesn't set the file time to the time recorded in the commit history by default.

If there is a particular reason why Git doesn't do this on default (other than it was a feature that no one didn't think of it useful to actually implement it), I'm interested to know about the decision against implementing this.

Source Link
David Refoua
  • 1.2k
  • 1
  • 12
  • 17
Loading