Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any GUI available for patch command? I need it because sometime I need to see the actual file before applying patch to it and it is very cumbersome to open patch file and then open the individual files listed in there. Even if I do that I cant compare the modified i.e patched file and unmodified/unpatched file.

share|improve this question
1  
Is the Stack Overflow question A visual patch tool for Linux helpful? –  N.N. Jun 20 '11 at 10:14
    
N.N. no. not really. Kompare seems like a nice tool. I am looking for something similar for Ubuntu. –  binW Jun 20 '11 at 10:23
1  
kompare is in Ubuntu –  N.N. Jun 20 '11 at 10:25
    
N.N. Ya it is there in the repo but it is actually for Kubuntu. As the package description says "This package is part of the KDE Software Development Kit module" so installing it means installing all KDE dependencies and I am not willing to install all those. –  binW Jun 20 '11 at 10:31
    
There are lots of dependencies for it but there is also comments on Stack Overflow saying that its worth it. The thread Patch GUI might be relevant even if it's a dead end. –  N.N. Jun 20 '11 at 10:42
show 1 more comment

1 Answer

When you open a patch file in emacs, you can put the cursor on a hunk and hit C-c C-c to jump to the corresponding location in the patched file and it will tell you if the patch has already been applied or not. Then you can use C-c C-a to apply the hunk.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.