
內容簡介
「Display Git Status」是一個相當簡單的外掛程式,它只需要存取 shell_exec 函數以及指向 Git 倉庫即可。
該外掛程式不會進行任何改變狀態的操作,它僅使用只讀方式存取倉庫,以提取類似分支名稱、最後提交和狀態等訊息。
當查詢到 Git 倉庫後(預設為 wp-content,可以透過設定進行覆寫),外掛程式將加入新的管理工具欄項目,其中包含 Git 圖示和目前的分支名稱。
如果網站有未被追蹤的變更,則選單項目的背景會變成紅色。
這非常理想,因為它直接在管理區域中提供小標記,讓您知道某些更改已經完成,您可能需要進一步了解。
此外,當您存取外掛程式的管理頁面時,您可以看到 git status 命令的結果,以及套用到您的網站的最後一個提交。
外掛標籤
開發者團隊
原文外掛簡介
Display Git Status is a pretty simple plugin, all it needs is access to the shell_exec function and to be pointed at a git repository.
The plugin will not perform any state altering operations, it accesses the repository using read only methods to fetch information like branch name, last commit and status.
When the git repository is located (defaulting to wp-content, or overwritten via a setting) the plugin will add a new admin bar item with the git icon and the current branch name.
When your site has untracked changes the menu items background will turn red.
This is ideal as it gives you a small marker directly in the admin area that some changes have been made which you probably need to look into.
Additionally when accessing the plugins admin page you can see the result of the git status command, and the last commit applied to your site.
