Commit Graph

43 Commits

Author SHA1 Message Date
Richard Patel
dcd740dd53
Refactor a few eprintf to R_LOG_ERROR ##refactor 2022-08-01 00:21:21 +02:00
Richard Patel
363df75c06
Replace some instances of eprintf with R_LOG_ 2022-06-28 02:49:42 +02:00
pancake
e489657954 Fix memleak in rvc add 2022-06-21 01:19:52 +02:00
rhl120
b8ff7b133d Fix the null deref I introduced in rvc.c 2022-05-26 23:53:46 +02:00
RHL120
4822e23d6c
Create a struct for rvc state ##projects 2022-05-26 19:52:01 +02:00
pancake
5b7c970f2b eprintf requires newline
* git grep eprintf | grep -v '\\n'| grep '('
2022-05-05 13:11:52 +02:00
RHL120
f437222bcb
Refactor some functions in rvc (#20007)
* Use goto when returning from get_commits in rvc
* As far as I can tell foreach checks if the list is null in rvc_ignore
* Use a goto in update_blobs in rvc
* Refactor get_blobs in rvc
2022-04-26 23:22:00 +02:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
pancake
63d4172d94
Fix last covs, mainly memleaks and update one test 2022-03-11 13:14:46 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
rhl120
41d07dc27a Write r_vc_checkout in terms of r_vc_reset to make it shorter 2021-11-01 15:18:57 +01:00
RHL120
3247b917e2
Use r_file_new in rvc.c (#19346) 2021-11-01 08:44:49 +01:00
RHL120
47ea6216ea
Add a clone command ##rvc 2021-10-30 09:35:43 +02:00
Sergi Àlvarez i Capilla
e1e6f3c754 Fix some warnings 2021-10-29 12:37:35 +02:00
RHL120
bdd6ca10b1
Add .rvc_ignore ##vc
* Load rvc_ignore before iterating through blobs
2021-10-06 08:28:05 +02:00
pancake
8de94fac5d Fix stripsysdir function for rvc 2021-09-19 18:47:04 +02:00
pancake
d98818b8bf
Some code cleanup and simplifications for rvc.c (#19108) 2021-09-19 11:25:17 +02:00
RHL120
288c8a75d5
Add an ravc2 reset command ##vc 2021-09-19 00:13:01 +02:00
pancake
c526e95076 Boolify r_sys_chdir 2021-09-13 02:30:22 -07:00
RHL120
7616e3de6c
Dis-allow \.* in rvc commit messages (#19048) 2021-09-03 21:13:06 +02:00
RHL120
888ba87878
Fix the rvc asan tests and some heap issues in rvc ##vc
* Remove a bad function and fix the ASAN tests
* Fix a use after free and a mem leak in rvc
* Fix another use after free in rvc
2021-08-31 13:33:03 +02:00
RHL120
5a8942104a
Add a status and log commands to ravc2 and add tests for rvc ##vc
* Add a function to get the list of commits & info
* Move all sdb_open(s) to a sperate function in rvc (could break)
* Add a function to list branches in rvc
* Move repo_exists checks to a macro
* Removed a useless function
* Add a log and a list branches commands to ravc2
* Remove BPREFIX from bname in ravc2 branch
* Add a function to get the current branch in rvc
* Add a stauts command to ravc2
* Make ravc2 return 1 on error instead of -[0-9]*
* Fix a problem with r_vc_checkout
* Add a hash= key before the commit hash in r_vc_log
* Add some tests for rvc
* change ret to db in vcdb_open in rvc
* completly replace ret by db in rvc's vcdb_open
2021-08-30 18:04:34 +02:00
RHL120
a1b6f0e7a8
Fix some memeory leaks in RVC (#19001) 2021-08-19 21:07:05 +02:00
RHL120
13e3368fcd
Fix few more problems with rvc (#18998) 2021-08-19 19:00:10 +02:00
RHL120
897960352d
Fix a problem with rvc/git (#18994) 2021-08-19 03:34:18 +02:00
pancake
0949413535 More fixes 2021-08-17 01:29:33 +00:00
RHL120
260dbb9e8f
Integrate rvc in projects and add a default commit message ##vc
* Add an rvc_git_repo_exists ()
* Add a prj.vc.message variable
* Honor interactivity to rvc
* Integrate rvc into projects
2021-08-13 18:37:18 +02:00
RHL120
ff81ce63de
Exclude files of nested rvc repos from repo_files() ##projects 2021-08-04 18:12:42 +02:00
RHL120
237dbc305a
Fix *NULL dereference in rvc2.c (#18929) 2021-07-23 18:11:28 +02:00
RHL120
a71486234f
Use r_sys_whoami as the author name for r_vc_commit ##projects (#18915)
* Force the caller to asign the author name in r_vc_commit
* Wrap formats in cmdf in double quotes and escape them
* Fix some memory leaks in r_vc_git_.*
2021-07-21 12:04:26 +02:00
pancake
02eb7e4a87 Fix memory leak and infinite loop in r_vc_find_rp ##rvc 2021-07-13 00:47:00 +02:00
RHL120
39d6ee533d
rvc add r_vc_find_rp ##projects (#18895) 2021-07-12 14:16:38 +02:00
RHL120
045abae796
Rework r_vc_checkout and fix some mem leaks ##projects (#18894)
* Added error checking to branch_exists
* Swapped the check value of branch_exists in r_vc_branch
* Make r_vc_checkout actually functional
2021-07-10 19:15:38 +02:00
RHL120
fe7b60354d
Rework the rvc_commit functions ##projects (#18889)
* Fixed memory leaks
* Swap the return vals of foreach_newline
2021-07-07 12:49:58 +02:00
RHL120
39b997b736
Take advantage of prj.vc.type and merge rvc & git ##projects (#18880) 2021-07-02 20:04:05 +02:00
RHL120
783079580b
Fix r_vc_commit and other functions ##projects 2021-07-02 11:49:44 +02:00
pancake
b39b3aaa8b Fix last coverities and improve ah subcommand helps 2021-06-21 23:42:49 +02:00
RHL120
6f05d09713
Major rvc api refactor to use sdb ##projects 2021-06-21 08:44:06 +02:00
RHL120
ca261127fa
Free everything when calling r_vc_free() (#18758) 2021-05-27 14:42:10 +02:00
pancake
14e5afe6cf
Add initial rvc2 command ##shell (#18716) 2021-05-20 03:34:23 +02:00
rhl120
da7687528a Fixed some other memory issues 2021-04-27 12:05:32 +02:00
rhl120
3d97ed389f Fixed some memory leak issues 2021-04-27 12:05:32 +02:00
RHL120
4682d70dc0
Initial import of the 'Radare2 Version Control System' APIs (#18499) ##core
* Sets the base for supporting multiple version controls for projects
* Implements a native version control software inside r2
* prj.git is now renamed to prj.vc (and prj.vc.type is added)
* No commands to use it yet, just API, further changes will come soon
2021-04-26 11:27:46 +02:00