Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context diff doesn't display the last modification timestamp #31

Closed
TanmayPatil105 opened this issue Mar 24, 2024 · 2 comments · Fixed by #33
Closed

Context diff doesn't display the last modification timestamp #31

TanmayPatil105 opened this issue Mar 24, 2024 · 2 comments · Fixed by #33
Labels
good first issue Good for newcomers

Comments

@TanmayPatil105
Copy link
Contributor

tanmay@tanmay-lenovo:~/Desktop/projects/uutils/diffutils$ diff -c fruits_old.txt fruits_new.txt 
*** fruits_old.txt	2024-03-24 23:43:05.189597645 +0530
--- fruits_new.txt	2024-03-24 23:35:08.922581904 +0530
***************
*** 1,3 ****
  Apple
! Banana
  Cherry
--- 1,3 ----
  Apple
! Fig
  Cherry
tanmay@tanmay-lenovo:~/Desktop/projects/uutils/diffutils$ cargo run -- -c fruits_old.txt fruits_new.txt 
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/diffutils -c fruits_old.txt fruits_new.txt`
*** fruits_old.txt	
--- fruits_new.txt	
***************
*** 1,3 ****
  Apple
! Banana
  Cherry
--- 1,3 ----
  Apple
! Fig
  Cherry
@sylvestre sylvestre added the good first issue Good for newcomers label Mar 26, 2024
TanmayPatil105 added a commit to TanmayPatil105/diffutils that referenced this issue Mar 27, 2024
sylvestre pushed a commit to TanmayPatil105/diffutils that referenced this issue Mar 30, 2024
@oSoMoN
Copy link
Collaborator

oSoMoN commented Apr 3, 2024

Unified diffs also display the file modification timestamp.
The format is documented in the manual.

@TanmayPatil105
Copy link
Contributor Author

Yeah, right! I can't believe I missed this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants