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

Generate proper listing and summary in git patches #9

Closed
krnowak opened this issue Feb 23, 2018 · 2 comments
Closed

Generate proper listing and summary in git patches #9

krnowak opened this issue Feb 23, 2018 · 2 comments

Comments

@krnowak
Copy link
Owner

krnowak commented Feb 23, 2018

It's about generating stuff like:

 test.sh                               |  1 +
 tests/basic/expected/0001-Add-b.patch | 16 ++++++++++++++++
 tests/basic/expected/0002-Add-c.patch | 17 +++++++++++++++++
 tests/basic/expected/ADD_B.patch      |  5 -----
 tests/basic/expected/ADD_C.patch      |  6 ------
 tests/basic/expected/patches.list     |  8 --------
 6 files changed, 34 insertions(+), 19 deletions(-)
 create mode 100644 tests/basic/expected/0001-Add-b.patch
 create mode 100644 tests/basic/expected/0002-Add-c.patch
 delete mode 100644 tests/basic/expected/ADD_B.patch
 delete mode 100644 tests/basic/expected/ADD_C.patch
 delete mode 100644 tests/basic/expected/patches.list

For first iteration I will be happy if 16 ++++++++++++++++ looks like 16 +.

@krnowak
Copy link
Owner Author

krnowak commented Feb 24, 2018

This needs to take very long paths into account. I think that they are truncated if too long.

@krnowak
Copy link
Owner Author

krnowak commented Mar 5, 2018

Fixed in:

  • 7fa30cb Initial code implementing git patch stats
  • 8371d08 Collect stats while parsing the annotated patch
  • 3973ffc Use the collected stats when generating git patches
  • 7aa10a1 Update patches with proper stats
  • ca2e473 Actually test the stats

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

1 participant