refactor(cli): make main more clean and moving subcommands to the commands files
This commit is contained in:
parent
58079f26da
commit
8aa95da2a1
3 changed files with 796 additions and 786 deletions
21
include/commands.h
Normal file
21
include/commands.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "base_file_buffer.h"
|
||||
#include "config.h"
|
||||
#include "commit.h"
|
||||
#include "hash.h"
|
||||
#include "object.h"
|
||||
#include "utilities.h"
|
||||
|
||||
void usage(int);
|
||||
int init();
|
||||
int diff(char*, char*);
|
||||
int status();
|
||||
int commit(int, char**);
|
||||
int commit_log();
|
||||
Loading…
Add table
Add a link
Reference in a new issue