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

Do we care about deleted file mode #93

Closed
scottchiefbaker opened this issue Feb 26, 2016 · 6 comments
Closed

Do we care about deleted file mode #93

scottchiefbaker opened this issue Feb 26, 2016 · 6 comments

Comments

@scottchiefbaker
Copy link
Contributor

In the interest of saving screen real-estate, can we remove deleted file mode. I can maybe understand showing the added file mode, but who cares about what the file mode was when it was deleted.

Should we remove this line? Or am I just complaining about nothing.

new file mode 100644
────────────────────────────────────────────────────────────────
added: hello.txt                                                
────────────────────────────────────────────────────────────────
@@ -0,0 +1 @@
HI THERE
deleted file mode 100644
────────────────────────────────────────────────────────────────
deleted: package.json                                           
────────────────────────────────────────────────────────────────
@@ -1,29 +0,0 @@
@scottchiefbaker
Copy link
Contributor Author

Also I'd be open for discussion about the added file mode too. I've never used it, but maybe someone has?

@paulirish
Copy link
Member

aye. i dont see much reason to keep the deleted file mode.

added can make sense for non-default modes like when +x is applied.

@scottchiefbaker
Copy link
Contributor Author

There is no "default" mode though. I'm not sure if we really care about added mode. It seems that we only really care about the mode when it's changing?

@paulirish
Copy link
Member

@scottchiefbaker yah. that's fine with me. lets nuke unless mode is changing

@OJFord
Copy link
Member

OJFord commented Mar 3, 2016

I think this would break the hopefully-inbound solution to #35 (add --patch support)?

I'm actually not sure whether it will work well with diff-so-fancy or
not; they change the diff header around a bit, and there's not a
complete 1:1 correspondence in the lines. But I think it might work OK
in practice, because their diff header remains 4 lines long, and the
hunks themselves have 1:1 line correspondence.

(mailing list)

@scottchiefbaker
Copy link
Contributor Author

Closing now that #102 has landed.

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

No branches or pull requests

3 participants