forked from msysgit/git
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update-microsoft-git: create barebones builtin
Just do the boilerplate stuff of making a new builtin, including documentation and integration with git.c. Signed-off-by: Derrick Stolee <[email protected]>
- Loading branch information
1 parent
45fb60a
commit b1fcf42
Showing
6 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
git-update-microsoft-git(1) | ||
=========================== | ||
|
||
NAME | ||
---- | ||
git-update-microsoft-git - Update the installed version of Git | ||
|
||
|
||
SYNOPSIS | ||
-------- | ||
[verse] | ||
'git update-microsoft-git' | ||
|
||
DESCRIPTION | ||
----------- | ||
This version of Git is based on the Microsoft fork of Git, which | ||
has custom capabilities focused on supporting monorepos. This | ||
command checks for the latest release of that fork and installs | ||
it on your machine. | ||
|
||
|
||
GIT | ||
--- | ||
Part of the linkgit:git[1] suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "builtin.h" | ||
#include "repository.h" | ||
#include "parse-options.h" | ||
#include "run-command.h" | ||
|
||
static int platform_specific_upgrade(void) | ||
{ | ||
return 1; | ||
} | ||
|
||
static const char builtin_update_microsoft_git_usage[] = | ||
N_("git update-microsoft-git"); | ||
|
||
int cmd_update_microsoft_git(int argc, const char **argv, const char *prefix) | ||
{ | ||
if (argc == 2 && !strcmp(argv[1], "-h")) | ||
usage(builtin_update_microsoft_git_usage); | ||
|
||
return platform_specific_upgrade(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters