Hi Team,
I am trying to contribute to the existing Git repos.
I have followed the process from the below link
https://wiki.centos.org/Sources
[user@host]$ git clone https://git.centos.org/git/rpms/kernel.git cd kernel# let's work on the centos7 kernel[user@host]$ git checkout c7[user@host]$ ~/bin/get_sources.sh# switch to the local tree to edit[user@host]$ git checkout -b my-kernel# make edits to SPEC file, etc [user@host]$ git commit -m 'my local change' -a
This command *~/bin/get_sources.sh has downloaded the xxxx.tar.gz file in the SOURCES directory.*
*Now I have extracted the tar file and did the changes. *
At this stage If I commit then I have to include all the extracted files.
If I run git format-patch c7 it generate the file which includes all the files.
Please guide me how to contribute to the existing GIT REPOS.
Thanks and Regards, Amarjeet Singh
On Wed, Feb 13, 2019 at 9:50 AM Amarjeet Singh amarjeetxc@gmail.com wrote:
Hi Team,
I am trying to contribute to the existing Git repos.
I have followed the process from the below link
https://wiki.centos.org/Sources
[user@host]$ git clone https://git.centos.org/git/rpms/kernel.git cd kernel # let's work on the centos7 kernel [user@host]$ git checkout c7 [user@host]$ ~/bin/get_sources.sh # switch to the local tree to edit [user@host]$ git checkout -b my-kernel # make edits to SPEC file, etc [user@host]$ git commit -m 'my local change' -a
This command ~/bin/get_sources.sh has downloaded the xxxx.tar.gz file in the SOURCES directory.
Now I have extracted the tar file and did the changes.
At this stage If I commit then I have to include all the extracted files.
If I run git format-patch c7 it generate the file which includes all the files.
Please guide me how to contribute to the existing GIT REPOS.
According to the page you have linked above "You should now have files in the working directory named as 0001-<commit>.patch and 0002-<commit>.patch etc; These files should be emailed to the centos-devel list as attachments ( ie, not inline in the email body ). Include information about what change you are requesting and if needed include information on bugs.centos.org that points to the list archive page that has your email from http://lists.centos.org/mailman/listinfo/centos-devel."
I've never done that, so beyond that, hopefully someone else can explain.
Troy
According to the page you have linked above "You should now have files in the working directory named as 0001-<commit>.patch and 0002-<commit>.patch etc; These files should be emailed to the centos-devel list as attachments ( ie, not inline in the email body ). Include information about what change you are requesting and if needed include information on bugs.centos.org that points to the list archive page that has your email from http://lists.centos.org/mailman/listinfo/centos-devel."
Yes, I have the file genereated but this file includes the whole project ( extracted tar ) instead of taking the changes that I did.
On Wed, Feb 13, 2019 at 11:38 PM Troy Dawson tdawson@redhat.com wrote:
On Wed, Feb 13, 2019 at 9:50 AM Amarjeet Singh amarjeetxc@gmail.com wrote:
Hi Team,
I am trying to contribute to the existing Git repos.
I have followed the process from the below link
https://wiki.centos.org/Sources
[user@host]$ git clone https://git.centos.org/git/rpms/kernel.git cd kernel # let's work on the centos7 kernel [user@host]$ git checkout c7 [user@host]$ ~/bin/get_sources.sh # switch to the local tree to edit [user@host]$ git checkout -b my-kernel # make edits to SPEC file, etc [user@host]$ git commit -m 'my local change' -a
This command ~/bin/get_sources.sh has downloaded the xxxx.tar.gz
file in the SOURCES directory.
Now I have extracted the tar file and did the changes.
At this stage If I commit then I have to include all the extracted files.
If I run git format-patch c7 it generate the file which includes all
the files.
Please guide me how to contribute to the existing GIT REPOS.
According to the page you have linked above "You should now have files in the working directory named as 0001-<commit>.patch and 0002-<commit>.patch etc; These files should be emailed to the centos-devel list as attachments ( ie, not inline in the email body ). Include information about what change you are requesting and if needed include information on bugs.centos.org that points to the list archive page that has your email from http://lists.centos.org/mailman/listinfo/centos-devel."
I've never done that, so beyond that, hopefully someone else can explain.
Troy _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
On Wed, Feb 13, 2019 at 10:15 AM Amarjeet Singh amarjeetxc@gmail.com wrote:
According to the page you have linked above "You should now have files in the working directory named as 0001-<commit>.patch and 0002-<commit>.patch etc; These files should be emailed to the centos-devel list as attachments ( ie, not inline in the email body ). Include information about what change you are requesting and if needed include information on bugs.centos.org that points to the list archive page that has your email from http://lists.centos.org/mailman/listinfo/centos-devel."
Yes, I have the file genereated but this file includes the whole project ( extracted tar ) instead of taking the changes that I did.
Ah ... I see what you are saying now. I wish I could be of more help, but I'll have to leave it for others.
On Wed, Feb 13, 2019 at 11:38 PM Troy Dawson tdawson@redhat.com wrote:
On Wed, Feb 13, 2019 at 9:50 AM Amarjeet Singh amarjeetxc@gmail.com wrote:
Hi Team,
I am trying to contribute to the existing Git repos.
I have followed the process from the below link
https://wiki.centos.org/Sources
[user@host]$ git clone https://git.centos.org/git/rpms/kernel.git cd kernel # let's work on the centos7 kernel [user@host]$ git checkout c7 [user@host]$ ~/bin/get_sources.sh # switch to the local tree to edit [user@host]$ git checkout -b my-kernel # make edits to SPEC file, etc [user@host]$ git commit -m 'my local change' -a
This command ~/bin/get_sources.sh has downloaded the xxxx.tar.gz file in the SOURCES directory.
Now I have extracted the tar file and did the changes.
At this stage If I commit then I have to include all the extracted files.
If I run git format-patch c7 it generate the file which includes all the files.
Please guide me how to contribute to the existing GIT REPOS.
According to the page you have linked above "You should now have files in the working directory named as 0001-<commit>.patch and 0002-<commit>.patch etc; These files should be emailed to the centos-devel list as attachments ( ie, not inline in the email body ). Include information about what change you are requesting and if needed include information on bugs.centos.org that points to the list archive page that has your email from http://lists.centos.org/mailman/listinfo/centos-devel."
I've never done that, so beyond that, hopefully someone else can explain.
Troy _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel
Hi
I think you are misunderstanding how this works.
git contains only the parts of the rpm like patches and the spec file. You don't check out the sources as part of the git checkout, you use get-sources.sh that pulls the tarball down from a lookaside cache. So when you run your git format-patch, it thinks that everything that get-sources.sh put there is new so it wants to upload it...
Which brings us to the other misunderstanding. You'll find that git.c.o is readonly. Only Redhat have commit access to it.
Trevor
On 13/02/2019 17:49, Amarjeet Singh wrote:
Hi Team,
I am trying to contribute to the existing Git repos.
I have followed the process from the below link
https://wiki.centos.org/Sources
[user@host]$ git clone https://git.centos.org/git/rpms/kernel.git cd kernel # let's work on the centos7 kernel [user@host]$ git checkout c7 [user@host]$ ~/bin/get_sources.sh # switch to the local tree to edit [user@host]$ git checkout -b my-kernel # make edits to SPEC file, etc [user@host]$ git commit -m 'my local change' -a
This command *~/bin/get_sources.sh has downloaded the xxxx.tar.gzfile in the SOURCES directory.*
*Now I have extracted the tar file and did the changes. *
At this stage If I commit then I have to include all the extracted files.
If I run git format-patch c7 it generate the file which includes all the files.
Please guide me how to contribute to the existing GIT REPOS.
Thanks and Regards, Amarjeet Singh
CentOS-devel mailing list CentOS-devel@centos.org https://lists.centos.org/mailman/listinfo/centos-devel