This repository has been archived by the owner. It is now read-only.

make it easier to create patches #971

Open
ollieparanoid opened this Issue Dec 2, 2017 · 3 comments

Comments

Projects
None yet
4 participants
@ollieparanoid
Member

ollieparanoid commented Dec 2, 2017

Ideas contributed by halamix2 in the chat:

  1. Our how to create a patch guide uses git to create a diff. But git asks you to configure an e-mail address, before it allows you to commit anything. It would be more user friendly, if we put a default e-mail in there, something like: pmos@localhost

  2. export TERM=xterm by default

@ollieparanoid ollieparanoid changed the title from pmbootstrap build_init: configure default git e-mail address to make it easier to create patches Dec 2, 2017

@Halamix2

This comment has been minimized.

Show comment
Hide comment
@Halamix2

Halamix2 Dec 2, 2017

Contributor

when creating a patch user needs to add git and nano, maybe it could be bundled by default?

Contributor

Halamix2 commented Dec 2, 2017

when creating a patch user needs to add git and nano, maybe it could be bundled by default?

@MartijnBraam

This comment has been minimized.

Show comment
Hide comment
@MartijnBraam

MartijnBraam Dec 6, 2017

Member

The user doesn't need nano, it needs any editor. (cough vim)

Member

MartijnBraam commented Dec 6, 2017

The user doesn't need nano, it needs any editor. (cough vim)

@drebrez

This comment has been minimized.

Show comment
Hide comment
@drebrez

drebrez Dec 6, 2017

Member

With my last porting I had to write a few patches and the fastest way I've found was to:

  1. create a temporary folder
  2. download the file (wget raw.github.... for example) you want to patch it (with the relative path also, ex: /tmp/path/to/file/to/change.h)
  3. git init && git add -A && git commit -m "initial"
  4. do your changes
  5. git diff > ~/pmbootstrap/aports/device/linux-device-xyz/05-comment.patch
Member

drebrez commented Dec 6, 2017

With my last porting I had to write a few patches and the fastest way I've found was to:

  1. create a temporary folder
  2. download the file (wget raw.github.... for example) you want to patch it (with the relative path also, ex: /tmp/path/to/file/to/change.h)
  3. git init && git add -A && git commit -m "initial"
  4. do your changes
  5. git diff > ~/pmbootstrap/aports/device/linux-device-xyz/05-comment.patch
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.