vng.git
14 years agoMake detection of empty repo also work after a git gcmaster
Thomas Zander [Tue, 1 Sep 2009 19:33:51 +0000 (1 21:33 +0200)]
Make detection of empty repo also work after a git gc

14 years agoProperly print the end-of-line-has-space warnings
Thomas Zander [Mon, 10 Aug 2009 11:10:02 +0000 (10 13:10 +0200)]
Properly print the end-of-line-has-space warnings

14 years agoImmensely speed up 'vng changes'
Thomas Zander [Thu, 30 Jul 2009 19:14:05 +0000 (30 22:14 +0300)]
Immensely speed up 'vng changes'

When we are sure we have the correct treeism, set it.  This
saves us an extra show-ref later.

14 years agoset usage of the pager properly
Thomas Zander [Sat, 25 Jul 2009 05:30:33 +0000 (25 08:30 +0300)]
set usage of the pager properly

14 years agoDon't show bisect branches in 'vng branch'
Thomas Zander [Fri, 24 Jul 2009 06:25:42 +0000 (24 09:25 +0300)]
Don't show bisect branches in 'vng branch'

14 years agobump version
Thomas Zander [Thu, 23 Jul 2009 18:44:15 +0000 (23 21:44 +0300)]
bump version

14 years agoMake reverting/unreverting a binary file work.
Thomas Zander [Thu, 23 Jul 2009 18:43:04 +0000 (23 21:43 +0300)]
Make reverting/unreverting a binary file work.

Make writing out a patch for a binary file work partly.
It now writes a header with all the sha1s etc, but not the file data.
At least for a revert (i.e. git apply) this is enough :)

14 years agoFix creating a diff for a deleted file.
Thomas Zander [Thu, 23 Jul 2009 18:38:12 +0000 (23 21:38 +0300)]
Fix creating a diff for a deleted file.

14 years agoFix writing renames to only happen on rename.
Thomas Zander [Thu, 23 Jul 2009 18:30:48 +0000 (23 21:30 +0300)]
Fix writing renames to only happen on rename.

14 years agonoticed bug
Thomas Zander [Thu, 23 Jul 2009 06:24:03 +0000 (23 09:24 +0300)]
noticed bug

14 years agoMake sure we don't ignore hidden files.
Thomas Zander [Tue, 21 Jul 2009 12:30:20 +0000 (21 15:30 +0300)]
Make sure we don't ignore hidden files.

14 years agoFix detecting of binary file status for new files
Thomas Zander [Wed, 22 Jul 2009 19:32:42 +0000 (22 22:32 +0300)]
Fix detecting of binary file status for new files

14 years agoRefactor the diff-parser to be a state machine to allow me to fix
Thomas Zander [Wed, 22 Jul 2009 18:18:44 +0000 (22 21:18 +0300)]
Refactor the diff-parser to be a state machine to allow me to fix
fringe cases
Unit test passes again..

14 years agoVarious fixes for revert/unrevert
Thomas Zander [Wed, 22 Jul 2009 17:43:23 +0000 (22 20:43 +0300)]
Various fixes for revert/unrevert

14 years agoFix reading a diff in 'whatsnew'
Thomas Zander [Wed, 22 Jul 2009 16:40:05 +0000 (22 19:40 +0300)]
Fix reading a diff in 'whatsnew'

14 years agoUpdate readGitDiff to work for rename and move patches
Thomas Zander [Wed, 22 Jul 2009 16:22:16 +0000 (22 19:22 +0300)]
Update readGitDiff to work for rename and move patches

14 years agoAdd test that fails to make the parsing of a diff more robust
Thomas Zander [Mon, 20 Jul 2009 21:47:02 +0000 (21 00:47 +0300)]
Add test that fails to make the parsing of a diff more robust

14 years agoMake 'revert' clean up after itself correctly in case of added/renamed files.
Thomas Zander [Mon, 20 Jul 2009 20:40:33 +0000 (20 23:40 +0300)]
Make 'revert' clean up after itself correctly in case of added/renamed files.

14 years agoFix writing out patches for
Thomas Zander [Mon, 20 Jul 2009 20:39:16 +0000 (20 23:39 +0300)]
Fix writing out patches for
* renamed files
* deleted files
* added files

14 years agostring fixes
Thomas Zander [Mon, 20 Jul 2009 17:26:37 +0000 (20 20:26 +0300)]
string fixes

14 years agoExtend 'pull' to also ask which of the remote branches to fetch. This allows the
Thomas Zander [Sun, 19 Jul 2009 21:28:46 +0000 (20 00:28 +0300)]
Extend 'pull' to also ask which of the remote branches to fetch. This allows the
user to minimize the download for now.
In future I want to be able to make it easier to not only detect a new remote
branch but immediately let the user create one locally that tracks the upstream one.

14 years agoMake partial records work again, we fixed it for > 450 but broke it for
Thomas Zander [Thu, 16 Jul 2009 19:31:59 +0000 (16 22:31 +0300)]
Make partial records work again, we fixed it for > 450 but broke it for
newer ones.  This fixes both :/

14 years agoFix issue where the cursor kept asking for input even though we answered the last...
Thomas Zander [Thu, 16 Jul 2009 19:31:07 +0000 (16 22:31 +0300)]
Fix issue where the cursor kept asking for input even though we answered the last question

14 years agoFix method name
Thomas Zander [Wed, 15 Jul 2009 14:43:25 +0000 (15 16:43 +0200)]
Fix method name

14 years agoBetter error reporting.
Thomas Zander [Wed, 15 Jul 2009 13:23:55 +0000 (15 15:23 +0200)]
Better error reporting.

14 years agoFix bug that a remote repo was suggested to the user twice
Thomas Zander [Sun, 21 Jun 2009 22:03:31 +0000 (22 01:03 +0300)]
Fix bug that a remote repo was suggested to the user twice

When the vng settings list a repo url, make sure its not already
provided in the git remotes

14 years agoAuto store the repos when the user passes them as arguments
Thomas Zander [Sun, 21 Jun 2009 21:07:17 +0000 (22 00:07 +0300)]
Auto store the repos when the user passes them as arguments

14 years agoAdd Configuration::addRepo methd to manage repositories on git config
Thomas Zander [Sun, 21 Jun 2009 21:51:07 +0000 (22 00:51 +0300)]
Add Configuration::addRepo methd to manage repositories on git config

14 years agoUpgrade push to also be able to select remote repositories via the cursor
Thomas Zander [Sat, 20 Jun 2009 23:19:28 +0000 (21 01:19 +0200)]
Upgrade push to also be able to select remote repositories via the cursor

14 years agoPlenty of fixes inthe GenericCursor and add the feature to select repository
Thomas Zander [Sat, 20 Jun 2009 23:01:52 +0000 (21 01:01 +0200)]
Plenty of fixes inthe GenericCursor and add the feature to select repository
where to pull from.

14 years agoProvide a little less blueprint.
Thomas Zander [Sat, 20 Jun 2009 22:31:58 +0000 (21 00:31 +0200)]
Provide a little less blueprint.

14 years agoChange the way we store vng (default) repos in the config file.
Thomas Zander [Sat, 20 Jun 2009 22:18:09 +0000 (21 00:18 +0200)]
Change the way we store vng (default) repos in the config file.

14 years agoAdd a class 'GenericCursor'
Thomas Zander [Sat, 20 Jun 2009 21:50:36 +0000 (20 23:50 +0200)]
Add a class 'GenericCursor'

14 years agoFix constness on isValid()
Thomas Zander [Sat, 20 Jun 2009 18:44:46 +0000 (20 20:44 +0200)]
Fix constness on isValid()
Fix pull to use the indirection of the git config when matching
remote and local branch names

14 years agofollow coding style in curly-braces placment
Thomas Zander [Sat, 20 Jun 2009 16:20:50 +0000 (20 18:20 +0200)]
follow coding style in curly-braces placment

14 years agoFix copy-pasted include-name
Thomas Zander [Sat, 20 Jun 2009 13:47:02 +0000 (20 15:47 +0200)]
Fix copy-pasted include-name

14 years agoremove the 'pull' todo since we started that command
Thomas Zander [Sat, 20 Jun 2009 13:44:54 +0000 (20 15:44 +0200)]
remove the 'pull' todo since we started that command

14 years agoAdd feature to fetch remotes&branches from git config and add pull command
Thomas Zander [Sat, 20 Jun 2009 09:46:11 +0000 (20 11:46 +0200)]
Add feature to fetch remotes&branches from git config and add pull command

14 years agoRead which branch it is we are using right now
Thomas Zander [Fri, 19 Jun 2009 08:37:32 +0000 (19 10:37 +0200)]
Read which branch it is we are using right now

14 years agoAdd api docs
Thomas Zander [Fri, 19 Jun 2009 09:01:40 +0000 (19 11:01 +0200)]
Add api docs

14 years agoFix typo
Thomas Zander [Wed, 17 Jun 2009 20:52:17 +0000 (17 22:52 +0200)]
Fix typo

14 years agoRemove obsolete part of the readme
Thomas Zander [Wed, 17 Jun 2009 20:46:27 +0000 (17 22:46 +0200)]
Remove obsolete part of the readme

14 years agoFix diff to now show an invert diff when passing --last kind of parameter.
Thomas Zander [Wed, 17 Jun 2009 09:20:32 +0000 (17 11:20 +0200)]
Fix diff to now show an invert diff when passing --last kind of parameter.

14 years agoFix capitalization
Thomas Zander [Mon, 15 Jun 2009 21:35:57 +0000 (15 23:35 +0200)]
Fix capitalization

14 years agoMake sure we kill the git process after we got all we wanted from it.
Thomas Zander [Sat, 13 Jun 2009 12:17:51 +0000 (13 14:17 +0200)]
Make sure we kill the git process after we got all we wanted from it.

14 years agoFixes the behavior of 'last' to be logical when we pass --reverse so
Thomas Zander [Sat, 13 Jun 2009 12:05:06 +0000 (13 14:05 +0200)]
Fixes the behavior of 'last' to be logical when we pass --reverse so
    --last 10 --reverse
shows the 10 most recent patches instead of the first 10 in the repo

14 years agoMake Diff command support --reverse
Thomas Zander [Sat, 13 Jun 2009 11:50:11 +0000 (13 13:50 +0200)]
Make Diff command support --reverse

14 years agoAdd --reverse option to Changes command. Which shows the oldest to the newest changes.
Thomas Zander [Sat, 13 Jun 2009 12:04:06 +0000 (13 14:04 +0200)]
Add --reverse option to Changes command. Which shows the oldest to the newest changes.
Additionally I changed the behavior of 'last' to now work on *shown* patches so mixing
last with other commands has more predictable behavior.

14 years agoCache results to avoid calling git twice
Thomas Zander [Sat, 13 Jun 2009 09:55:02 +0000 (13 11:55 +0200)]
Cache results to avoid calling git twice

14 years agoAvoid subcommand from fetching all config data again.
Thomas Zander [Sat, 13 Jun 2009 09:36:20 +0000 (13 11:36 +0200)]
Avoid subcommand from fetching all config data again.

14 years agoremove unused header
Thomas Zander [Sat, 13 Jun 2009 09:35:55 +0000 (13 11:35 +0200)]
remove unused header

14 years agoDetect git-encoded filenames in diffs and parse them correctly
Thomas Zander [Sat, 13 Jun 2009 09:32:03 +0000 (13 11:32 +0200)]
Detect git-encoded filenames in diffs and parse them correctly

14 years agoMore good compile-time ascii checks. Disabled for now since it requires more work to
Thomas Zander [Sat, 13 Jun 2009 08:59:15 +0000 (13 10:59 +0200)]
More good compile-time ascii checks. Disabled for now since it requires more work to
support them.

14 years agoEncoding fixes
Thomas Zander [Sat, 13 Jun 2009 08:58:12 +0000 (13 10:58 +0200)]
Encoding fixes

14 years ago* Supply a way to copy command data (including the config) so its safe to
Thomas Zander [Fri, 12 Jun 2009 14:40:19 +0000 (12 16:40 +0200)]
* Supply a way to copy command data (including the config) so its safe to
  start nested commands after calling nestedCommand.pullConfigDataFrom(this);
* loads of fixes for the 'diff' command.

14 years agocoding style fixes
Thomas Zander [Fri, 12 Jun 2009 13:15:48 +0000 (12 15:15 +0200)]
coding style fixes

14 years agoAllow passing of revision(s) on the command line of 'diff'
Thomas Zander [Fri, 12 Jun 2009 08:12:08 +0000 (12 10:12 +0200)]
Allow passing of revision(s) on the command line of 'diff'

14 years agoMore fixing and adding of QLatin1String() wrappers.
Thomas Zander [Fri, 12 Jun 2009 07:51:48 +0000 (12 09:51 +0200)]
More fixing and adding of QLatin1String() wrappers.

14 years agofix more encoding issues for non-latin1 filenames
Thomas Zander [Fri, 12 Jun 2009 05:53:29 +0000 (12 07:53 +0200)]
fix more encoding issues for non-latin1 filenames

14 years agoMake this project more ascii cast safe.
Thomas Zander [Thu, 11 Jun 2009 22:54:51 +0000 (12 00:54 +0200)]
Make this project more ascii cast safe.

14 years agoFix includes
Thomas Zander [Thu, 11 Jun 2009 22:17:56 +0000 (12 00:17 +0200)]
Fix includes
Patch by Riccardo Iaconelli <riccardo@kde.org>

14 years agobuild.
Thomas Zander [Thu, 11 Jun 2009 22:07:29 +0000 (12 00:07 +0200)]
build.
Patch from aseigo

14 years agoDon't whine so much
Thomas Zander [Thu, 11 Jun 2009 21:46:25 +0000 (11 23:46 +0200)]
Don't whine so much

14 years agobump version
Thomas Zander [Thu, 11 Jun 2009 21:39:16 +0000 (11 23:39 +0200)]
bump version

14 years agoOh, remove the todo since 'diff' is done :)
Thomas Zander [Thu, 11 Jun 2009 21:38:29 +0000 (11 23:38 +0200)]
Oh, remove the todo since 'diff' is done :)

14 years agoMake 'diff' also able to generate a diff between HEAD and a random named branch
Thomas Zander [Thu, 11 Jun 2009 21:36:11 +0000 (11 23:36 +0200)]
Make 'diff' also able to generate a diff between HEAD and a random named branch

14 years agoI don't think we want the 'replace' command.
Thomas Zander [Fri, 5 Jun 2009 10:49:21 +0000 (5 12:49 +0200)]
I don't think we want the 'replace' command.

14 years agoAdd QtCreator config file to the list of default ignores
Thomas Zander [Fri, 5 Jun 2009 10:49:05 +0000 (5 12:49 +0200)]
Add QtCreator config file to the list of default ignores

14 years agoAdd a 'diff' command that basically does the same as WhatsNew -u
Thomas Zander [Fri, 5 Jun 2009 10:48:40 +0000 (5 12:48 +0200)]
Add a 'diff' command that basically does the same as WhatsNew -u

14 years agoFixes diff/record/unrecord/etc not working on lines longer than 1023 chars
Thomas Zander [Fri, 15 May 2009 14:46:49 +0000 (15 16:46 +0200)]
Fixes diff/record/unrecord/etc not working on lines longer than 1023 chars

Make the buffer be 10kb per line instead.

15 years agoFurther encoding fixes
Thomas Zander [Fri, 15 May 2009 14:25:30 +0000 (15 16:25 +0200)]
Further encoding fixes

15 years agoAdd support for non-latin1 filenames
Thomas Zander [Fri, 15 May 2009 13:44:26 +0000 (15 15:44 +0200)]
Add support for non-latin1 filenames

15 years agoFix parsing 'last' in Changes to give an error when we don't pass a number
Thomas Zander [Fri, 15 May 2009 10:54:26 +0000 (15 12:54 +0200)]
Fix parsing 'last' in Changes to give an error when we don't pass a number

15 years agoupdate todo
Thomas Zander [Fri, 15 May 2009 10:36:20 +0000 (15 12:36 +0200)]
update todo

15 years agoFixes: Recoding a patch sometimes adds a deleted file to the repo
Thomas Zander [Fri, 15 May 2009 10:35:05 +0000 (15 12:35 +0200)]
Fixes: Recoding a patch sometimes adds a deleted file to the repo

Details: If the user does an 'add' and then removes the file on the filesystem
         its still in the git index, but git doesn't tell us when we run
         git diff-index -M HEAD
         Add a call to git diff-files to find out such files and update the index to match

15 years agoFixes: Make vng work with Qt4.5.1 which fixed QFile::rename()
Thomas Zander [Wed, 29 Apr 2009 12:12:00 +0000 (29 14:12 +0200)]
Fixes: Make vng work with Qt4.5.1 which fixed QFile::rename()
Details: remove code, just use QFile::copy()

15 years agoMake vng whatsnew not timeout on a large repo and code caches.
Thomas Zander [Wed, 29 Apr 2009 12:06:43 +0000 (29 14:06 +0200)]
Make vng whatsnew not timeout on a large repo and code caches.

Add tiny feature to GitRunner. Allow a custom timeout.

15 years agoAdd 'make test' and 'make install' targets for the tests dirs.
Thomas Zander [Wed, 11 Mar 2009 17:07:18 +0000 (11 18:07 +0100)]
Add 'make test' and 'make install' targets for the tests dirs.

15 years agoMake using "Record::record()" be less chatty. The Record::run() has full chattyness...
Thomas Zander [Fri, 24 Oct 2008 11:02:12 +0000 (24 13:02 +0200)]
Make using "Record::record()" be less chatty. The Record::run() has full chattyness still.

15 years agoDon't yell at user for cancelling ;)
Thomas Zander [Fri, 24 Oct 2008 10:45:10 +0000 (24 12:45 +0200)]
Don't yell at user for cancelling ;)

15 years agoImplement most todos. Seems to be working just fine now :)
Thomas Zander [Tue, 21 Oct 2008 07:18:55 +0000 (21 09:18 +0200)]
Implement most todos. Seems to be working just fine now :)

15 years agoPass in the sha1 as well as the branch name for each branch object
Thomas Zander [Tue, 21 Oct 2008 07:18:33 +0000 (21 09:18 +0200)]
Pass in the sha1 as well as the branch name for each branch object

15 years agoImplement recovery object
Thomas Zander [Tue, 21 Oct 2008 06:38:18 +0000 (21 08:38 +0200)]
Implement recovery object

15 years agotiny fix
Thomas Zander [Mon, 20 Oct 2008 21:51:39 +0000 (20 23:51 +0200)]
tiny fix

15 years agoMany fixes and cleanups
Thomas Zander [Mon, 20 Oct 2008 21:45:33 +0000 (20 23:45 +0200)]
Many fixes and cleanups

15 years agoMake amend also work for patches that are not the latest one.
Thomas Zander [Mon, 20 Oct 2008 17:44:49 +0000 (20 19:44 +0200)]
Make amend also work for patches that are not the latest one.

15 years agoDon't do too much work
Thomas Zander [Mon, 20 Oct 2008 12:41:43 +0000 (20 14:41 +0200)]
Don't do too much work

15 years agoFix Commit::commitTreeIsmSha1 in case of the treeIsm being HEAD.
Thomas Zander [Mon, 20 Oct 2008 12:41:04 +0000 (20 14:41 +0200)]
Fix Commit::commitTreeIsmSha1 in case of the treeIsm being HEAD.

15 years agoMake the commit object use a byteArray instead of a string to avoid conversion errors.
Thomas Zander [Mon, 20 Oct 2008 11:57:55 +0000 (20 13:57 +0200)]
Make the commit object use a byteArray instead of a string to avoid conversion errors.

15 years agoBetter warning
Thomas Zander [Mon, 20 Oct 2008 11:11:15 +0000 (20 13:11 +0200)]
Better warning

15 years agoMerge branch 'master' of git://repo.or.cz/vng
Thomas Zander [Mon, 20 Oct 2008 08:00:30 +0000 (20 10:00 +0200)]
Merge branch 'master' of git://repo.or.cz/vng

15 years agoforward various options and make cancelling not leave the tree dirty
Thomas Zander [Sat, 18 Oct 2008 17:36:17 +0000 (18 19:36 +0200)]
forward various options and make cancelling not leave the tree dirty

15 years agoSplit UnRecord::run() into a protected run() and a public unRecord() to make sure...
Thomas Zander [Sat, 18 Oct 2008 17:12:45 +0000 (18 19:12 +0200)]
Split UnRecord::run() into a protected run() and a public unRecord() to make sure it doesn't reuse te singleton commandlineargs at unwanted places

15 years agoSplit Record::run() into a protected run() and a public record() to make sure it...
Thomas Zander [Sat, 18 Oct 2008 17:02:45 +0000 (18 19:02 +0200)]
Split Record::run() into a protected run() and a public record() to make sure it doesn't reuse te singleton commandlineargs at unwanted places

15 years agoFurther work on amend record, the general usecase of amending the most
Thomas Zander [Sat, 18 Oct 2008 16:42:28 +0000 (18 18:42 +0200)]
Further work on amend record, the general usecase of amending the most
recent commit works mostly.

15 years agoAdd a setter on Record
Thomas Zander [Sat, 18 Oct 2008 16:41:50 +0000 (18 18:41 +0200)]
Add a setter on Record

15 years agoAdd new method to get the resolved commit treeism in case it was a ref
Thomas Zander [Sat, 18 Oct 2008 15:05:59 +0000 (18 17:05 +0200)]
Add new method to get the resolved commit treeism in case it was a ref

15 years agoExtend the commits cursor to have a selection type and thus make
Thomas Zander [Sat, 18 Oct 2008 14:37:47 +0000 (18 16:37 +0200)]
Extend the commits cursor to have a selection type and thus make
it useful for both UnRecord and amend record

15 years agoFirst empy method call for AmendRecord
Thomas Zander [Sat, 18 Oct 2008 09:12:38 +0000 (18 11:12 +0200)]
First empy method call for AmendRecord

15 years agoCleanups
Thomas Zander [Sat, 18 Oct 2008 09:08:21 +0000 (18 11:08 +0200)]
Cleanups