New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13002 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 3 months ago

"port diff" command to help Portfile writer make patches

Reported by: ebgssth@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version: 1.5.0
Keywords: Cc: ebgssth@…, afb@…
Port:

Description

port diff command is a new sub-command of port command which works live below.

$ port edit portname # make changes
$ port diff portfile # invokes diff -u Original-Portfile Edited-Portfile

This functionality makes patches for Portfile easier.

Change History

Changed 2 years ago by afb@…

We are currently using Subversion instead.

svn diff Portfile

Changed 2 years ago by ryandesign@…

  • cc ebgssth@…, afb@… added
  • milestone set to MacPorts base enhancements

Changed 2 years ago by afb@…

  • status changed from new to closed
  • resolution set to wontfix

If you have some more ideas on how the "save an original" phase would work, or how to resolve edits by multiple authors (so that you diff against the recent version) then reopen ticket...

Until then, use subversion ?

Changed 2 years ago by ebgssth@…

edits by multiple authors should be resoved by subversion.

port diff helps casual portfile writer, who doesn't svn co macports src, edit portfiles.

"save an original" phase shouldn't be so difficult. Just rename the original Portfile.orig, and port diff checks that whether there's a modified file or not and if there is, Just invoke diff portfile.orig portfile | $PAGER

Changed 3 months ago by jmr@…

  • milestone MacPorts Future deleted
Note: See TracTickets for help on using tickets.