[haiku-development] Re: sysinfo patch

> > Btw, usually you svn diff from trunk, even for single files, so one
> > doesn't have to search for it, as with:
> > svn diff src/bin/sysinfo.c > thediff
> >
> >
> > François.
> >
> >
>
> Good to know.  Next time I post a patch I'll try to remember to do it
> from trunk.  I posted a diff on this ticket a few days ago:
> http://dev.haiku-os.org/ticket/2389, but did it from the terminal
> folder. If someone can apply it that'd be great.  I've been using it
> for a few days now and it's been handy to have.  Not sure if the Set
> Title... menu item should have a separator under it or not though,
> note I didn't write the code, that was done by "hey68you", I just
> created the diff.  Note that the diff doesn't include 2 of the files
> since they are new, is there a way to get those included into a diff?
> those two files are attached to the ticket as well, just be sure to
> remove the "2" from the filenames prior to adding them in.

Just svn add them, it shouldn't require write access for it.
Then svn diff will include them since they are versionned locally.
You might then have to svn revert them before svn up if it complains.

Another option is to do

svn diff src/foo/bar > thepatch.txt
diff -u /dev/null src/foo/bar/newfile1 >> thepatch.txt
diff -u /dev/null src/foo/bar/newfile2 >> thepatch.txt

François.

Other related posts: