bugQuilt - Bugs: bug #51668, quilt import should read from stdin

 
 

bug #51668: quilt import should read from stdin

Submitted by:  Oleksandr Gavenko <gavenkoa>
Submitted on:  Sat 05 Aug 2017 08:42:03 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: Jean Delvare <khali>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 07 Aug 2017 03:03:15 PM UTC, comment #3:

Yes this works for me in Cygwin Bash:

$ quilt import -P git.diff <(git diff)

Completely forget about Process Substitution.

That satisfied my needs.

Oleksandr Gavenko <gavenkoa>
Mon 07 Aug 2017 12:20:48 PM UTC, comment #2:

Unfortunately I can't find any trace of the candidate patches mentioned in bug #46958. I must have deleted them after closing the bug.

With bash, you can use the following to achieve what you want:

# quilt import -P git.diff <(git diff)

It should work with other SCM, and with any shell supporting process substitution. Does it work for you?

Jean Delvare <khali>
Project AdministratorIn charge of this item.
Sat 05 Aug 2017 09:20:37 PM UTC, comment #1:

Found ugly alternative:

svn diff | quilt import -f -P new.diff -p0 /dev/stdin

and broken by interesting:

hg diff | quilt fold

Oleksandr Gavenko <gavenkoa>
Sat 05 Aug 2017 08:42:03 PM UTC, original submission:

I would like to use quilt with Git and

  • to avoid numerous "quilt add" and
  • to allow to import existing Git changes as patch

I'd like to have syntax:

git diff | quilt import -P fix.patch -

Currently it failed with:

Patch - does not exist

I can emulate behavior with:

git diff >fix.patch
quilt import fix.patch
rm fix.patch

though it doesn't look funny in 2017 ((

Similar request is closed without no meaningful reason:

https://savannah.nongnu.org/bugs/?46958

If this request WONTFIX please answer how I can import already applied changes from Git/HG/SVN managed sources avoiding SH/BASH kong-fu (to make "quild add ..." or save patch, un-apply changes, etc).

Oleksandr Gavenko <gavenkoa>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by khali (Posted a comment)
  • -unavailable- added by gavenkoa (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Aug 2017 12:20:48 PM UTCkhaliStatusNone=>Need Info
      Assigned toNone=>khali

    Back to the top


    Powered by Savane 3.1-cleanup1