mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
13b127e919
There's currently a function for getting added files (A) and modified files (M). We'll also eventually need the ability to get deleted files (D) and any combination of the above, e.g (AM). Rather than creating a new function for each possible case, let's have a single function where you can pass in which modifiers you are interested in. With this patch, if you want all modified and added files, you can do: get_changed_files('AM') By default 'ADM' is used. This also adds a 'mode' option for git. This allows consumers to return staged files, unstaged files or both. The default ('unstaged') keeps the current behaviour in tact. MozReview-Commit-ID: 9IA1bxaJS80 --HG-- extra : rebase_source : 160f650220ca9a35b4b116bc9fa13f28d84419fa |
||
---|---|---|
.. | ||
devtools/migrate-l10n | ||
mach | ||
mozboot | ||
mozbuild | ||
mozlint | ||
mozversioncontrol/mozversioncontrol | ||
mach_commands.py | ||
moz.build | ||
README |
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Vendored python modules (use third_party/python instead) * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 https://bugzilla.mozilla.org/show_bug.cgi?id=1346025