]>
git.neil.brown.name Git - wiggle.git/log
Neil Brown [Mon, 7 May 2012 21:59:26 +0000 (07:59 +1000)]
Replace hash.h with better hash function from CCAN
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 7 May 2012 21:59:26 +0000 (07:59 +1000)]
Fix 'make version'
Since I change the format for the version string, this hasn't worked.
NeilBrown <neilb@suse.de>
Neil Brown [Mon, 7 May 2012 21:59:26 +0000 (07:59 +1000)]
.gitignore updates
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 7 May 2012 21:59:21 +0000 (07:59 +1000)]
General cleanups
- spelling fixes
- remove ifdefed-out code
- white space adjustments
- etc
Signed-off-by: NeilBrown <neilb@suse.de>
Barak A. Pearlmutter [Sun, 19 Feb 2012 03:29:07 +0000 (14:29 +1100)]
ChangeLog-typo
option --quite should read --quiet
Alexandre Carmel-Veilleux [Thu, 8 Dec 2011 02:46:56 +0000 (21:46 -0500)]
Test condition was being ignored
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Wed, 7 Dec 2011 23:22:46 +0000 (10:22 +1100)]
Silences warnings about set-but-not-used variables.
Signed-off-by: NeilBrown <neilb@suse.de>
Alexandre Carmel-Veilleux [Fri, 2 Dec 2011 13:55:08 +0000 (08:55 -0500)]
Removed malloc.h, fixed off-by-one in bestmatch.c, it was silent in Linux and deadly on Mac OS X.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Wed, 7 Dec 2011 23:13:16 +0000 (10:13 +1100)]
Stuff from months ago that I forget why
But it looks ok
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Sun, 28 Aug 2011 07:59:57 +0000 (17:59 +1000)]
Remove merge.c
It hasn't been used for a while
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Sun, 28 Aug 2011 07:57:54 +0000 (17:57 +1000)]
vpatch cleanup
add some comments and general clean ups.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Fri, 26 Aug 2011 03:38:39 +0000 (13:38 +1000)]
Fix various typos in help messages.
I've obviously not proof-read this...
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Aug 2011 12:49:04 +0000 (22:49 +1000)]
Clean up bestmatch.c
Add lots of comments, remove some cruft etc.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Aug 2011 11:39:47 +0000 (21:39 +1000)]
Clean up split.c
Add/fix comments, remove unused function parameter.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Aug 2011 11:29:27 +0000 (21:29 +1000)]
Comment and tidy up diff.c
Add lots of comments explaining algorithm. Change some
variable names and minor improvements.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Aug 2011 06:28:34 +0000 (16:28 +1000)]
Clean up more valgrind errors.
Various issues found by watching valgrind. Typically falling
one way or the other off the end of an array.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 11:18:35 +0000 (21:18 +1000)]
Use Cmd var instread of "wiggle" in various error messages.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 11:18:29 +0000 (21:18 +1000)]
Fix white space etc issues reported by checkpatch.pl
i.e. checkpatch.pl from the linux kernel.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 11:18:28 +0000 (21:18 +1000)]
Update date COPYING and FSF address.
Just addresses and license commentary change. No change in license.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 11:18:26 +0000 (21:18 +1000)]
Fix use of uninitialised vars in merge2.
This makes valgrind happier.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 08:08:08 +0000 (18:08 +1000)]
Avoid use of undefined variable in bestmatch.
When v->val is <= 0, v->k doesn't mean anything and isn't needed, so
avoid using it. This helps make valgrind happy.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 08:08:02 +0000 (18:08 +1000)]
nul terminate stream read from a file.
Though we carry around the length of a string and so will not normally
need a nul terminator, we sometimes use sscanf which cannot take a
length and so needs nul termination.
So add a nul when loading from a file or stdin.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 04:28:20 +0000 (14:28 +1000)]
dotest: Check if /usr/bin/time supports the needed functionality.
Not all version of /usr/bin/time support -o and -f. So test if the
installed one does and act accordingly.
Reported-by: Oliver Kiddle <oliver@kiddle.eu>
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 04:28:20 +0000 (14:28 +1000)]
Stop using case ranges.
case a...b:
is gcc specific. So don't use it - do an explicit range test instead.
Reported-by: Oliver Kiddle <oliver@kiddle.eu>
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 04:28:20 +0000 (14:28 +1000)]
Ask for more warnings and fix some.
In particular we were using strncmp without including string.h -
because memory.h automatically includes it..
Reported-by: Oliver Kiddle <oliver@kiddle.eu>
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Mon, 22 Aug 2011 04:28:20 +0000 (14:28 +1000)]
Make lots of functions "static".
In particular isolate_conflicts() needs to be static to avoid a link
error with SUN's C compiler
Reported-by: Oliver Kiddle <oliver@kiddle.eu>
Also this shows that set_prefix() wasn't being used any more, so fix
that.
Signed-off-by: NeilBrown <neilb@suse.de>
Greg Ward [Fri, 25 Jun 2010 21:06:15 +0000 (17:06 -0400)]
Makefile portability patch
Don't run tests with sh, since sh is not always bash.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Wed, 12 May 2010 06:35:31 +0000 (16:35 +1000)]
Change format of 'version' string
Based on suggestions from Jari Aalto <jari.aalto@cante.net>
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 12 May 2010 06:31:57 +0000 (16:31 +1000)]
More options for giving patches to --browse
As well as a 'patch' file (which identifies the target file by
names in the patch file), you can now also browse given a
target file plus a diff,
just the diff if it ends '.rej',
a target file plus old and new versions of the file.
Signed-off-by: NeilBrown <neilb@suse.de>
Jari Aalto [Tue, 11 May 2010 06:12:30 +0000 (09:12 +0300)]
ReadMe.c - spelling fix
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Wed, 12 May 2010 02:36:12 +0000 (12:36 +1000)]
Use git-archive to create a release
it avoid unwanted files.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 5 May 2010 07:06:53 +0000 (17:06 +1000)]
Write some notes about editting merges.
Neil Brown [Sun, 4 Apr 2010 10:12:30 +0000 (20:12 +1000)]
browse: allow selective listing of only files with wiggles or with conflicts.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sun, 4 Apr 2010 09:23:18 +0000 (19:23 +1000)]
browser: add help window
Add display of help window on '?', and add
lots of help text for various modes.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sun, 4 Apr 2010 06:14:25 +0000 (16:14 +1000)]
browser: rearrange code
Put all the 'main window' code together, and all the
'merge window' code together.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sun, 4 Apr 2010 06:07:41 +0000 (16:07 +1000)]
browser: first cut at horizontal split.
When in 'merge' mode we display the patch in a bottom window when on a
conflict or wiggle, so full context can be see.
This is a bit rough at the moment - the image jumps more than I would
like and it is hard to visually follow what is happening.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Sun, 4 Apr 2010 03:21:54 +0000 (13:21 +1000)]
browser: prev/next_melmnt to take mp not mpos.
As prev/next_melmnt only use the main 'struct mp' of an
mpos, it is less confusing to only give them that to work on.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Apr 2010 23:15:41 +0000 (09:15 +1000)]
browse: never leave blank space above
Having blank space above the display looks
ugly, so if some appears, refresh to remove it.
Also get 'control-L' to recenter as well as refresh.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Sat, 3 Apr 2010 22:33:30 +0000 (08:33 +1000)]
browser: Minor search improvements
We still don't get control-s through though.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Apr 2010 22:24:53 +0000 (08:24 +1000)]
browser: move check_line call
instead of calling before eac call to draw_mline, call it
inside draw_mline instead.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Sat, 3 Apr 2010 22:16:23 +0000 (08:16 +1000)]
Add some tracing to browser
Allow examining each element/pos in the current context
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Sat, 3 Apr 2010 13:08:56 +0000 (00:08 +1100)]
Browser: add line number tracking.
Useful for matching against linenos given in patch.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Fri, 2 Apr 2010 05:37:05 +0000 (16:37 +1100)]
browser: display patch chunk headers in 'diff' output.
When showing 'before' of 'after' text which comes from a patch,
display the chunk header:
@@ xx,yy +aa,bb @@
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Fri, 2 Apr 2010 04:31:59 +0000 (15:31 +1100)]
Significant browser update.
wiggle -B
is getting closer to what I wanted. Lots of dead code removed
and lots of fine details tidied up.
Usage is a bit different in that we don't always see a split
window.
Various sundry changes like .gitignore and "make demo.path"
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Mar 2010 10:49:58 +0000 (21:49 +1100)]
FORTIFY_SOURCE fixes
Fix a buffer overflow, some unused values, and some uninitialised variables.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Mar 2010 09:30:14 +0000 (20:30 +1100)]
Release 0.8
Added some patches to resolve issues raise for openSUSE package.
Neil Brown [Wed, 24 Mar 2010 08:03:39 +0000 (19:03 +1100)]
Add --no-ignore option
This suppresses the optimisation of ignoring conflicts which appear to
be making a change that had already been made.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Mar 2010 07:53:02 +0000 (18:53 +1100)]
Improve parsing of diff3 output.
When diff3 discovers the the 1st and 3rd files match, but differ from
the 2nd it reports:
<<<<<<<
content from second file
=======
content from 1st and 3rd file
>>>>>>>
without a ||||||| line at all.
Enhance the extract code to recognise this.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Mar 2010 07:52:30 +0000 (18:52 +1100)]
Update wiggle.spec for new version and location.
Neil Brown [Wed, 24 Mar 2010 06:30:14 +0000 (17:30 +1100)]
Release version 0.7
After nearly 7 years...
Neil Brown [Wed, 24 Mar 2010 06:28:03 +0000 (17:28 +1100)]
vpatch: silence a compiler warning.
Apparently attrset seems to return a value so we need
to explicitly ignore it.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Wed, 24 Mar 2010 06:22:36 +0000 (17:22 +1100)]
Add a number of tests which had not been commited to 'git' previously.
Signed-off-by: NeilBrown <neilb@suse.de>
Neil Brown [Tue, 23 Mar 2010 06:09:05 +0000 (17:09 +1100)]
Improve diff/fixup when diff is greedy at end of a diff.
The 'fixup' code to make up for the greediness of diff did not
treat the end of the diff as a (zero length) match which can be grown.
This could leave no context at the end of a 'diff'.
Applying a patch with no trailing context can cause confusion.
This fixes the issue raise by Debian Bug 271766
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=271766
The sample from that bug is included as a test.
Signed-off-by: NeilBrown <neilb@suse.de>
Jari Aalto [Thu, 4 Mar 2010 17:31:21 +0000 (19:31 +0200)]
Makefile: (clean): do not delete original files
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Jari Aalto [Thu, 4 Mar 2010 08:55:37 +0000 (10:55 +0200)]
extract.c: (split_merge): initialize with NULL
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Jari Aalto [Wed, 3 Mar 2010 23:32:15 +0000 (01:32 +0200)]
wiggle.1: fix hyphens
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Thu, 5 Mar 2009 05:59:14 +0000 (16:59 +1100)]
Improve parsing of diff -u output.
Normally chunks start
@@ -%d,%d +%d%d @@
but if a section is just one line long, the ',1' is dropped, so
@@ -%d +%d @@
is possible.
Neil Brown [Thu, 5 Mar 2009 05:38:17 +0000 (16:38 +1100)]
Fix an off-by-one bug.
I assume .... I don't remember, sorry.
Neil Brown [Thu, 5 Mar 2009 05:36:52 +0000 (16:36 +1100)]
vpatch: remove a pointless dereference.
Neil Brown [Thu, 5 Mar 2009 05:35:59 +0000 (16:35 +1100)]
Various little changes to p.
I did them a while ago an don't remember..
Neil Brown [Tue, 13 Jun 2006 12:59:29 +0000 (22:59 +1000)]
Fix a couple of little bugs that crept in to p
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:14 +0000 (22:57 +1000)]
Add export option to p
This is a preliminary attempt at git integration.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:10 +0000 (22:57 +1000)]
Add rebase function to 'p'
This moves all 'applied' patches to 'included'
and makes the current files 'current' and 'orig'.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:06 +0000 (22:57 +1000)]
When calling a recursive p, use $0 to find it.
This applied to recommit and decommit
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:04 +0000 (22:57 +1000)]
Fix up problem with make_diff
Because creation of .patches/patch is now delayed,
we couldn't delete it when needed.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:03 +0000 (22:57 +1000)]
get_conf was messing up the 'name' variable
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:01 +0000 (22:57 +1000)]
Define 'p unapply'
This reverses an applied patch that was forced in.
It goes back to the removed directory exactly as it was.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:57:00 +0000 (22:57 +1000)]
Don't allow patch reviewing and patch applying to overlap
Otherwise we get into a mess
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:56:59 +0000 (22:56 +1000)]
Fix typo in to-resolve name
To make sure we don't commit with resolving conflicts.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:56:58 +0000 (22:56 +1000)]
Allow tagline in config instead of hard-coding $CERT
Other people wouldn't want my $CERT ....
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:56:57 +0000 (22:56 +1000)]
Handle config file for author/maintainer/cc
e.g.
author = NeilBrown <neilb@suse.de>
header = X-Face: whatever
header = " and whatever
maintainer = akpm@osdl.org
[Nfsd]
tag=kNFSd
cc=nfs@lists.sourceforge.net
[Md]
tag=md
cc=linux-raid@vger.kernel.org
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:56:55 +0000 (22:56 +1000)]
Move base files from ~current~ to .patches/current/
similarly for ~orig~.
This means the tree isn't cluttered with yukky file names.
Also add 'p upgrade' functionality to move files in an active tree.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:56:38 +0000 (22:56 +1000)]
Just some TODO updates
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Tue, 13 Jun 2006 12:37:57 +0000 (22:37 +1000)]
Remove unnwanted empty file
Neil Brown [Sat, 3 Jun 2006 12:04:48 +0000 (12:04 +0000)]
Support searching backwards too.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 11:55:55 +0000 (11:55 +0000)]
Basic incremental search support.
Only forward, and still some rough edges,
and only once per line, and no highlighting etc.
But there is real functionality there.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 10:43:18 +0000 (10:43 +0000)]
Move to start or end of line.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 10:38:56 +0000 (10:38 +0000)]
Support horizontal movement: left and right.
Side-scroll on demand
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 09:43:30 +0000 (09:43 +0000)]
Find previous and next diffs.
'P' and 'N'
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 09:31:21 +0000 (09:31 +0000)]
Page up and down
Control-V and ESC-v
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 09:16:52 +0000 (09:16 +0000)]
Fix bug where first line always displayed as a blank.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 02:06:48 +0000 (02:06 +0000)]
Movement commands for top and bottom
ESC < or 0G for top
ESC > or G for bottom
Some number-prefix stuff too.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 01:36:02 +0000 (01:36 +0000)]
Blank screen after end of file and before beginning.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 01:28:51 +0000 (01:28 +0000)]
Add todo file
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Sat, 3 Jun 2006 01:28:05 +0000 (01:28 +0000)]
Adequate viewing of merged diffs now.
Displays + and - lines as appropriate and can
be positioned on any line.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Fri, 2 Jun 2006 13:39:34 +0000 (13:39 +0000)]
Beginning of handling of grouped diffs.
i.e. if there are some '-' and some '+' lines together,
then all the '-' come first, followed by all the '+',
rather than intermingling them.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Fri, 9 Jun 2006 07:10:55 +0000 (07:10 +0000)]
Remove all trailing blanks.
There are quite a few...
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Mon, 29 May 2006 10:42:57 +0000 (10:42 +0000)]
Improvements to brower mode.
While still simplistic, it now displays deletes and inserts
on different lines, so each file line can be 1 or 2
screen lines.
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Thu, 25 May 2006 11:08:57 +0000 (11:08 +0000)]
Remove support for the name 'vpatch'
Apparently it is otherwise used:
http://www.tibed.net/index.php?page=vpatch
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Thu, 25 May 2006 10:59:57 +0000 (10:59 +0000)]
Get merge2 to pass all the tests...
Some of this done by changing tests...
Signed-off-by: Neil Brown <neilb@suse.de>
Neil Brown [Fri, 9 Jun 2006 07:05:42 +0000 (17:05 +1000)]
Add tests/linux/idmap.h
I must have missed it before.
Neil Brown [Sun, 21 May 2006 23:51:00 +0000 (09:51 +1000)]
Fix a couple of signed/unsigned warnings
(cherry picked from
80e90ff5842fb2b382efe8768f441ddbdca5300e commit)
Neil Brown [Sun, 21 May 2006 23:46:32 +0000 (09:46 +1000)]
Add new patch-browsing mode - needs a lot of work.
(cherry picked from
0b29f4153dbe34b164e2636066c19d2c383e17e4 commit)
Neil Brown [Sun, 21 May 2006 23:34:17 +0000 (09:34 +1000)]
Still more updates to 'p'
Neil Brown [Sun, 21 May 2006 23:33:29 +0000 (09:33 +1000)]
Cope if 'best' doesn't find anything any good.
Neil Brown [Sun, 21 May 2006 23:32:24 +0000 (09:32 +1000)]
More updates to 'p'
Neil Brown [Sun, 21 May 2006 23:20:25 +0000 (09:20 +1000)]
Assorted fixes and enhancements...
Neil Brown [Sun, 21 May 2006 23:18:15 +0000 (09:18 +1000)]
Various enhancements to 'p'
Neil Brown [Sun, 21 May 2006 23:17:49 +0000 (09:17 +1000)]
Fix off-by-one-error when extracting a merge file.
If a merge ended at EOF, --extract wouldn't interpret it properly.
Neil Brown [Sun, 21 May 2006 23:17:06 +0000 (09:17 +1000)]
Add recommit option to 'p'