我知道git diff --stat可以用来查看提交和未暂存更改之间添加和删除的行数,如下所示:
src/core.cpp | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
Run Code Online (Sandbox Code Playgroud)
但每次我想查看这些指标时都打开终端并将其最小化,这很麻烦。是否有一种简单的方法可以在编辑器中查看这些内容,无论是内置于 VSCode 本身还是由扩展提供?
我目前正在努力解决一个在我看来像是回归的问题,因为我以前从未遇到过它。
支持以下程序创建 SQLite3 数据库、名为 的新表sample,并用单行填充它。
#include <sqlite3.h>
#include <stdio.h>
int main() {
int rc;
sqlite3_stmt* stmt;
sqlite3* db;
rc = sqlite3_open("/tmp/test_second.db", &db);
if (rc) {
printf("Failed to open sqlite3 database: %s\n", sqlite3_errmsg(db));
return 1;
}
rc = sqlite3_prepare_v2(db, "CREATE TABLE sample (anum INTEGER PRIMARY KEY); ", -1, &stmt, NULL);
if (rc != SQLITE_OK) {
printf("Failed to create table: %s\n", sqlite3_errmsg(db));
return 1;
}
sqlite3_finalize(stmt);
rc = sqlite3_prepare_v2(db, "INSERT INTO sample (anum) VALUES (0); ", -1, &stmt, NULL);
if …Run Code Online (Sandbox Code Playgroud)